Class: String Private
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/money_attribute/core_ext/string.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Convenience method for parsing Mint::Money from strings.
Instance Method Summary collapse
-
#to_money(currency = MoneyAttribute.default_currency) ⇒ Mint::Money
private
Parses the string into a
Mint::Moneyvalue.
Instance Method Details
#to_money(currency = MoneyAttribute.default_currency) ⇒ Mint::Money
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Parses the string into a Mint::Money value.
17 |
# File 'lib/money_attribute/core_ext/string.rb', line 17 def to_money(currency = MoneyAttribute.default_currency) = Money.parse(self, currency) |