Method: UnitMeasurements::Unit#value

Defined in:
lib/unit_measurements/unit.rb

#valueString|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”).

Returns:

  • (String|Numeric|Array<Numeric, String>)

    Conversion value of the unit.

Author:

Since:

  • 1.0.0



30
31
32
# File 'lib/unit_measurements/unit.rb', line 30

def value
  @value
end