Method: Quantify::Unit::CompoundBaseUnit#name
- Defined in:
- lib/quantify/unit/compound_base_unit.rb
#name(reciprocal = false) ⇒ Object
Absolute index as names always contain ‘per’ before denominator units
34 35 36 |
# File 'lib/quantify/unit/compound_base_unit.rb', line 34 def name(reciprocal=false) name_to_power(@unit.name, @index.abs) end |