module Oshpark::Dimensionable
Public Instance Methods
area_in_square_inches()
click to toggle source
# File lib/oshpark/dimensionable.rb, line 11 def area_in_square_inches width_in_inches * height_in_inches end
area_in_square_mm()
click to toggle source
# File lib/oshpark/dimensionable.rb, line 23 def area_in_square_mm width_in_mm * height_in_mm end
height_in_inches()
click to toggle source
# File lib/oshpark/dimensionable.rb, line 7 def height_in_inches height_in_mils / 1000.0 end
height_in_mm()
click to toggle source
# File lib/oshpark/dimensionable.rb, line 19 def height_in_mm height_in_inches * 25.4 end
width_in_inches()
click to toggle source
# File lib/oshpark/dimensionable.rb, line 3 def width_in_inches width_in_mils / 1000.0 end
width_in_mm()
click to toggle source
# File lib/oshpark/dimensionable.rb, line 15 def width_in_mm width_in_inches * 25.4 end