Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ruby_units/string.rb
Instance Method Summary collapse
- #convert_to(other) ⇒ Unit
-
#format_with_unit(*other) ⇒ String
(also: #%)
format unit output using formating codes.
-
#to_unit(other = nil) ⇒ Unit
make a string into a unit.
Instance Method Details
#convert_to(other) ⇒ Unit
24 25 26 |
# File 'lib/ruby_units/string.rb', line 24 def convert_to(other) to_unit.convert_to(other) end |