Method: UnitMeasurements::Unit#value
- Defined in:
- lib/unit_measurements/unit.rb
#value ⇒ String|Numeric|Array<Numeric, String> (readonly)
The conversion value of the unit. It can be a numeric value or a string in the form of a number followed by a unit name (e.g., “10 m”).
30 31 32 |
# File 'lib/unit_measurements/unit.rb', line 30 def value @value end |