Sha256: ac0ac895ac36cb7299fc6caa8cf3101164c4e39cce599452c2c95cab07fff9c2

Contents?: true

Size: 226 Bytes

Versions: 7

Compression:

Stored size: 226 Bytes

Contents

module LinkThumbnailer
  module ImageComparators
    class Size < ::LinkThumbnailer::ImageComparators::Base

      def call(other)
        (other.size.min.to_i ** 2) <=> (image.size.min.to_i ** 2)
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
link_thumbnailer-3.3.1 lib/link_thumbnailer/image_comparators/size.rb
link_thumbnailer-3.3.0 lib/link_thumbnailer/image_comparators/size.rb
link_thumbnailer-3.2.1 lib/link_thumbnailer/image_comparators/size.rb
link_thumbnailer-3.2.0 lib/link_thumbnailer/image_comparators/size.rb
link_thumbnailer-3.1.2 lib/link_thumbnailer/image_comparators/size.rb
link_thumbnailer-3.1.1 lib/link_thumbnailer/image_comparators/size.rb
link_thumbnailer-3.1.0 lib/link_thumbnailer/image_comparators/size.rb