lib/zold/amount.rb in zold-0.14.44 vs lib/zold/amount.rb in zold-0.14.45
- old
+ new
@@ -67,10 +67,10 @@
Rainbow(text).green
end
end
def ==(other)
- raise '== may only work with Amount' unless other.is_a?(Amount)
+ raise "== may only work with Amount: #{other}" unless other.is_a?(Amount)
@coins == other.to_i
end
def >(other)
raise '> may only work with Amount' unless other.is_a?(Amount)