Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/money_attribute/core_ext.rb

Overview

:nodoc

Instance Method Summary collapse

Instance Method Details

#to_money(currency = MoneyAttribute.default_currency) ⇒ Object



17
# File 'lib/money_attribute/core_ext.rb', line 17

def to_money(currency = MoneyAttribute.default_currency) = Mint.parse(self, currency)