diff options
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 |