module Crys class ImageProcessor def initialize(path:, filename:, width: :auto) @path = path @filename = filename @file = File.read(path) end def relative_path filename end def filename filename end def processed_asset file.to_s end private attr_reader :path, :filename, :file end end