class ImageSize::Size
Array joining with ‘x’
Public Instance Methods
height()
click to toggle source
get second element
# File lib/image_size.rb, line 28 def height self[1] end
Also aliased as: h
to_s()
click to toggle source
join using ‘x’
# File lib/image_size.rb, line 17 def to_s join('x') end
width()
click to toggle source
get first element
# File lib/image_size.rb, line 22 def width self[0] end
Also aliased as: w