Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/si_units/string.rb
Instance Method Summary collapse
-
#to_unit ⇒ Object
make a string into a unit.
Instance Method Details
#to_unit ⇒ Object
make a string into a unit
4 5 6 |
# File 'lib/si_units/string.rb', line 4 def to_unit SIUnits::Unit.new(self) end |