Method: Quantify::Unit::Base#is_benchmark_unit?
- Defined in:
- lib/quantify/unit/base_unit.rb
#is_benchmark_unit? ⇒ Boolean
Determine if the unit is one of the units against which all other units of the same physical quantity are defined. These units are almost entirely equivalent to the non-prefixed, SI units, but the one exception is the kilogram, which is an oddity in being THE canonical SI unit for mass, yet containing a prefix. This oddity makes this method useful/necessary.
327 328 329 |
# File 'lib/quantify/unit/base_unit.rb', line 327 def is_benchmark_unit? @factor == 1.0 end |