From 4004a55b0e324c35cbc7d58b831e49efd484ab93 Mon Sep 17 00:00:00 2001 From: mms Date: Wed, 8 Jan 2025 21:24:33 +0100 Subject: feat: rubocop --- new/lib/crys/processors/html_processor.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'new/lib/crys/processors/html_processor.rb') 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 -- cgit v1.2.3