Method: Quantify::Unit::CompoundBaseUnit#index
- Defined in:
- lib/quantify/unit/compound_base_unit.rb
#index ⇒ Object
Container class for compound unit base units. Each instance is represented by a unit and an index, i.e. a unit raised to some power. If no index is present, 1 is assumed.
Instances of this class can be used to initialize base units, and are the structures which hold base units within compound units
14 15 16 |
# File 'lib/quantify/unit/compound_base_unit.rb', line 14 def index @index end |