Sha256: f7426d54a03694bb87ba1242c3494e9455a1f0e1b351c3d6902034d379f557a5

Contents?: true

Size: 164 Bytes

Versions: 13

Compression:

Stored size: 164 Bytes

Contents

# encoding: utf-8

class String
  def to_money(currency = nil)
    Monetize.parse!(self, currency)
  end

  def to_currency
    Money::Currency.new(self)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
monetize-1.13.0 lib/monetize/core_extensions/string.rb
monetize-1.12.0 lib/monetize/core_extensions/string.rb
monetize-1.11.0 lib/monetize/core_extensions/string.rb
monetize-1.10.0 lib/monetize/core_extensions/string.rb
monetize-1.9.4 lib/monetize/core_extensions/string.rb
monetize-1.9.3 lib/monetize/core_extensions/string.rb
monetize-1.9.2 lib/monetize/core_extensions/string.rb
monetize-1.9.1 lib/monetize/core_extensions/string.rb
monetize-1.9.0 lib/monetize/core_extensions/string.rb
monetize-1.8.0 lib/monetize/core_extensions/string.rb
monetize-1.7.0 lib/monetize/core_extensions/string.rb
monetize-1.6.0 lib/monetize/core_extensions/string.rb
monetize-1.5.0 lib/monetize/core_extensions/string.rb