lib/quantify/unit/base_unit.rb
# Multiply two units together. This results in the generation of a compound
# unit.
#
Multiply two units together. This results in the generation of a compound
unit.
Multiply two units together . This results in the generation of a compound unit .
def multiply(other)
        options = []
        self.instance_of?(Unit::Compound) ? options += @base_units : options << self
        other.instance_of?(Unit::Compound) ? options += other.base_units : options << other
        Unit::Compound.new(*options)
      end
def multiply ( other ) options = [ ] self . instance_of? ( Unit :: Compound ) ? options += @base_units : options << self other . instance_of? ( Unit :: Compound ) ? options += other . base_units : options << other Unit :: Compound . new ( * options ) end
Multiply two units together.
Multiply two units together .
other
<not_specific>