lib/quantify/unit/compound_unit.rb
# Return a known unit which is equivalent to self in terms of its physical
# quantity (dimensions), factor and scaling attributes (i.e. representing the
# precise same physical unit but perhaps with different identifiers), e.g.
#
#   ((Unit.kg*(Unit.m**"))/(Unit.s**2)).equivalent_known_unit.name
#
#                                #=> "joule"
#
Return a known unit which is equivalent to self in terms of its physical
quantity (dimensions), factor and scaling attributes , e.g.




Return a known unit which is equivalent to self in terms of its physical quantity ( dimensions ) factor and scaling attributes e . g .
def equivalent_known_unit
        Unit.units.values.find do |unit|
          self.is_equivalent_to?(unit) && !unit.is_compound_unit?
        end
      end
def equivalent_known_unit Unit . units . values . find do | unit | self . is_equivalent_to? ( unit ) && ! unit . is_compound_unit? end end
Return a known unit which is equivalent to self in terms of its physical
quantity (dimensions), factor and scaling attributes (i.e.
Return a known unit which is equivalent to self in terms of its physical quantity ( dimensions ) factor and scaling attributes ( i . e .