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