lib/money_extensions/integer.rb in money_extensions-0.1.0 vs lib/money_extensions/integer.rb in money_extensions-1.0.0

- old
+ new

@@ -1,6 +1,8 @@ +# frozen_string_literal: true + class Integer - #Returns self as a money (treated as cents) + # Returns self as a money (treated as cents) def total_money zero? ? ::Money.new(0) : ::Money.new(self) end end