Sha256: 480d1ad858a9404c442efe39fa9182f26356c02d3d36bb70ba0dab85b1810d43

Contents?: true

Size: 144 Bytes

Versions: 3

Compression:

Stored size: 144 Bytes

Contents

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

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