lib/quantify/unit/compound_base_unit.rb in quantify-1.0.2 vs lib/quantify/unit/compound_base_unit.rb in quantify-1.0.3

- old
+ new

@@ -12,11 +12,11 @@ # attr_accessor :unit, :index def initialize(unit,index=1) - @unit = Unit.match(unit) || raise(InvalidUnitError, "Base unit not known: #{unit}") - raise InvalidUnitError, "Base unit cannot be compound unit" if @unit.is_a? Compound + @unit = Unit.match(unit) || raise(Exceptions::InvalidUnitError, "Base unit not known: #{unit}") + raise Exceptions::InvalidUnitError, "Base unit cannot be compound unit" if @unit.is_a? Compound @index = index end def dimensions @unit.dimensions ** @index \ No newline at end of file