Sha256: c447211df372017eae6d0ccf0d83eaed9c13e226e1e8af73a76d05a0214c71b1

Contents?: true

Size: 163 Bytes

Versions: 15

Compression:

Stored size: 163 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

15 entries across 15 versions & 2 rubygems

Version Path
monetize-1.4.0 lib/monetize/core_extensions/string.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/monetize-1.3.0/lib/monetize/core_extensions/string.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/monetize-1.3.0/lib/monetize/core_extensions/string.rb
monetize-1.3.1 lib/monetize/core_extensions/string.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/monetize-1.3.0/lib/monetize/core_extensions/string.rb
monetize-1.3.0 lib/monetize/core_extensions/string.rb
monetize-1.2.0 lib/monetize/core_extensions/string.rb
monetize-1.1.0 lib/monetize/core_extensions/string.rb
monetize-1.0.0 lib/monetize/core_extensions/string.rb
monetize-0.4.1 lib/monetize/core_extensions/string.rb
monetize-0.4.0 lib/monetize/core_extensions/string.rb
monetize-0.3.0 lib/monetize/core_extensions/string.rb
monetize-0.2.0 lib/monetize/core_extensions/string.rb
monetize-0.1.4 lib/monetize/core_extensions/string.rb
monetize-0.1.3 lib/monetize/core_extensions/string.rb