Class | Numeric |
In: |
lib/eymiha/units/numeric.rb
|
Parent: | Object |
Numerics are extended to allow them to be united with units.
Part of this extension is in the added dynamism of the class. During unit definition, if an unencountered unit is referenced, the use is held until more information is loaded into the system and the unknown unit has been resolved. During use, unencountered units are raised.
method_missing | -> | method_missing_before_units |
Returns a NumericWithUnits whose numeric value is the value of the instance, and whose unit is determined from the provided unit and power in the context of a given measure: