lib/vatcalc/util.rb in vatcalc-0.1.0 vs lib/vatcalc/util.rb in vatcalc-0.1.1

- old
+ new

@@ -13,10 +13,10 @@ def convert_to_money(obj,curr=nil) curr ||= Vatcalc.currency case obj when Money obj - when Fixnum + when Integer Money.new(obj,curr) when Numeric Money.new(obj*100,curr) else raise InvalidAmountError.new "Can't convert #{obj.class} to an Money instance" \ No newline at end of file