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.
9 10 11 |
# File 'lib/link_thumbnailer/image_comparator.rb', line 9 def initialize(image) @image = image end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
7 8 9 |
# File 'lib/link_thumbnailer/image_comparator.rb', line 7 def image @image end |
Instance Method Details
#call(other) ⇒ Object
13 14 15 |
# File 'lib/link_thumbnailer/image_comparator.rb', line 13 def call(other) size_comparator.call(other) end |