Method: Quantify::Unit::Base#is_base_unit?
- Defined in:
- lib/quantify/unit/base_unit.rb
#is_base_unit? ⇒ Boolean
Determine if the unit represents one of the base quantities, length, mass, time, temperature, etc.
297 298 299 |
# File 'lib/quantify/unit/base_unit.rb', line 297 def is_base_unit? Dimensions::BASE_QUANTITIES.map {|base| base.remove_underscores }.include? self.measures end |