class FeaturedImage::Size

Attributes

height[RW]
width[RW]

Public Class Methods

new(width, height) click to toggle source
# File lib/featuredimage/finder.rb, line 179
def initialize(width, height)
        @width, @height = width, height
end

Public Instance Methods

<(size) click to toggle source
# File lib/featuredimage/finder.rb, line 187
def <(size)
        @width * @height < size.width * size.height ? true : false
end
aspect() click to toggle source
# File lib/featuredimage/finder.rb, line 183
def aspect
        width.to_f / height.to_f # ;-)
end