Sha256: 14904cfbbddc41211859796f7639d221413141be7d400da2c0579b06f110e72e

Contents?: true

Size: 123 Bytes

Versions: 3

Compression:

Stored size: 123 Bytes

Contents

class Numeric
  def to_money(currency = nil)
    Monetize.from_numeric(self, currency || Money.default_currency)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
monetize-0.1.2 lib/monetize/core_extensions/numeric.rb
monetize-0.1.1 lib/monetize/core_extensions/numeric.rb
monetize-0.1.0 lib/monetize/core_extensions/numeric.rb