class Numeric

Allows Writing of 100.to_money for Numeric types

100.to_money => #<Money @cents=10000>
100.37.to_money => #<Money @cents=10037>

Public Instance Methods

to_money(currency = nil) click to toggle source
# File lib/money/core_extensions.rb, line 6
def to_money(currency = nil)
  Money.new(self, currency)
end