Method: Quantify::Dimensions.base_dimensions
- Defined in:
- lib/quantify/dimensions.rb
.base_dimensions ⇒ Object
Returns an array of Dimensions objects representing just the base quantities, i.e. length, mass, time, temperature, etc.
52 53 54 55 56 |
# File 'lib/quantify/dimensions.rb', line 52 def self.base_dimensions @@dimensions.select do |dimensions| BASE_QUANTITIES.map {|quantity| quantity.remove_underscores}.include?(dimensions.describe) end end |