Class: Height::Units::Inches
- Inherits:
-
Base
- Object
- Base
- Height::Units::Inches
show all
- Defined in:
- lib/height/units/inches.rb
Instance Attribute Summary
Attributes inherited from Base
#value
Instance Method Summary
collapse
Methods inherited from Base
#*, #+, #-, #/, #<=>, #initialize, round_value, #to_s, #to_unit
Instance Method Details
#to_centimeters ⇒ Object
14
15
16
|
# File 'lib/height/units/inches.rb', line 14
def to_centimeters
to_millimeters.to_centimeters
end
|
#to_inches ⇒ Object
5
6
7
|
# File 'lib/height/units/inches.rb', line 5
def to_inches
self
end
|
#to_meters ⇒ Object
18
19
20
|
# File 'lib/height/units/inches.rb', line 18
def to_meters
to_centimeters.to_meters
end
|