class Symbol
Open Symbol
to add new methods.
Public Instance Methods
to_currency()
click to toggle source
Converts the current symbol into a Currency
object.
@return [Money::Currency]
@raise [Money::Currency::UnknownCurrency]
If this String reference an unknown currency.
@example
:ars.to_currency #=> #<Money::Currency id: ars>
# File lib/money/core_extensions.rb, line 78 def to_currency Money::Currency.new(self) end