diff options
author | mms <git@sapka.me> | 2025-01-08 21:24:33 +0100 |
---|---|---|
committer | mms <git@sapka.me> | 2025-01-08 21:24:33 +0100 |
commit | 4004a55b0e324c35cbc7d58b831e49efd484ab93 (patch) | |
tree | 3ff4c68c28165b6d08c1a49532e8421193433d65 /new/lib/crys/processors/html_processor.rb | |
parent | 2781360c7c25404c5a1fd03ed3472d43367ed8c6 (diff) |
feat: rubocop
Diffstat (limited to 'new/lib/crys/processors/html_processor.rb')
-rw-r--r-- | new/lib/crys/processors/html_processor.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/new/lib/crys/processors/html_processor.rb b/new/lib/crys/processors/html_processor.rb index bcc9768b..33116cef 100644 --- a/new/lib/crys/processors/html_processor.rb +++ b/new/lib/crys/processors/html_processor.rb @@ -1,13 +1,14 @@ +# frozen_string_literal: true + require 'erb' -require_relative "common_functions" -require_relative "common_parts" +require_relative 'common_functions' +require_relative 'common_parts' module Crys class HtmlProcessor - include CommonFunctions include CommonParts - + def initialize(file_path:, image_dir:) @file_path = file_path @image_dir = image_dir @@ -20,7 +21,7 @@ module Crys end def filename - file_path.scan(/.*\/(.*)\.erb/).flatten.first + file_path.scan(%r{.*/(.*)\.erb}).flatten.first end attr_reader :assets, :file_path @@ -31,7 +32,7 @@ module Crys attr_writer :assets def local_binding - local_binding ||= binding.clone + @local_binding ||= binding.clone end end end |