Class: Seamus::File::Image

Inherits:
File
  • Object
show all
Includes:
ImageInspector, ImageProcessor, StandardAdditions
Defined in:
lib/seamus/file/image.rb

Instance Method Summary collapse

Methods included from StandardAdditions

#[], #add_inspection_attributes, #attributes, #content_type, #md5, #md5_base64_encoded, #md5_digest, #size

Methods included from ImageProcessor

#thumbnail

Methods included from ImageInspector

#inspector

Constructor Details

#initialize(*args, &block) ⇒ Image

Returns a new instance of Image.



7
8
9
10
# File 'lib/seamus/file/image.rb', line 7

def initialize(*args, &block)
  super(*args, &block)
  create_methods_for inspector, :except => ["thumbnail", "thumbnail2"]
end

Instance Method Details

#inspection_attributesObject



12
13
14
# File 'lib/seamus/file/image.rb', line 12

def inspection_attributes
  @inspection_attributes ||= [:width, :height] + standard_attributes
end