summaryrefslogtreecommitdiff
path: root/new/lib/crys/image_processor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'new/lib/crys/image_processor.rb')
-rw-r--r--new/lib/crys/image_processor.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/new/lib/crys/image_processor.rb b/new/lib/crys/image_processor.rb
index b7e2fd67..306c0769 100644
--- a/new/lib/crys/image_processor.rb
+++ b/new/lib/crys/image_processor.rb
@@ -1,26 +1,24 @@
+# frozen_string_literal: true
+
module Crys
class ImageProcessor
def initialize(path:, filename:, width: :auto)
@path = path
@filename = filename
@file = File.read(path)
+ @width = width
end
def relative_path
filename
end
- def filename
- filename
- end
-
def processed_asset
file.to_s
end
- private
+ private
- attr_reader :path, :filename, :file
-
+ attr_reader :path, :filename, :file
end
end