Class | Eymiha::UnitsMeasure |
In: |
lib/eymiha/units/units_measure.rb
|
Parent: | MethodicHash |
A UnitsMeasure groups sets of units that measure the same quality.
derived | [R] | A Hash of UnitsMeasures to powers that represent the bases for this UnitsMeasure if it is derived. |
formats | [R] | A Methodic Hash mapping names of formats to procs that implement them. |
Returns a new UnitsMeasure equal to the instance multiplied by another UnitsMeasure. This is typically used to derive UnitsMeasures - for example, if length is a UnitsMeasure, then length*length could be used as the target to derive area.
Returns a new UnitsMeasure equal to the instance raised to the given power. This is typically used to derive UnitsMeasures - for example, if length is a UnitsMeasure, then length**3 could be used as the target to derive volume.
Returns a new UnitsMeasure equal to the instance divided by another UnitsMeasure. This is typically used to derive UnitsMeasures - for example, if mass and volume are UnitsMeasures, then mass/volume could be used as the target to derive density.
Defines or extends a UnitsSystem. During definition, if forward references between entities may occur and when encountered, are stored. Upon completion of the definition, if any existing unresolved still exist, an attempt is made to resolve them.
Returns a String containing the names of this UnitsMeasure and the namse of the UnitsSystems defined within it.