# File lib/eymiha/units/units_hash.rb, line 15
    def initialize(unit = nil,power = 1) # :nodoc
      if unit
        if unit.kind_of? UnitsUnit
          self[unit] = power
        elsif unit.kind_of? UnitsHash
          unit.each { |k,v| self[k] = v*power }
        else
          raise UnitsException.new("invalid unit: #{unit}")
        end
      end
    end