Class: LinkThumbnailer::ImageComparator
- Inherits:
-
Object
- Object
- LinkThumbnailer::ImageComparator
- Defined in:
- lib/link_thumbnailer/image_comparator.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
Instance Method Summary collapse
- #call(other) ⇒ Object
-
#initialize(image) ⇒ ImageComparator
constructor
A new instance of ImageComparator.
Constructor Details
#initialize(image) ⇒ ImageComparator
Returns a new instance of ImageComparator.
11 12 13 |
# File 'lib/link_thumbnailer/image_comparator.rb', line 11 def initialize(image) @image = image end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
9 10 11 |
# File 'lib/link_thumbnailer/image_comparator.rb', line 9 def image @image end |
Instance Method Details
#call(other) ⇒ Object
15 16 17 |
# File 'lib/link_thumbnailer/image_comparator.rb', line 15 def call(other) size_comparator.call(other) end |