class Integer

Public Instance Methods

total_money() click to toggle source

Returns self as a money (treated as cents)

# File lib/money_extensions/integer.rb, line 5
def total_money
  zero? ? ::Money.new(0) : ::Money.new(self)
end