Class Symbol
In: lib/money/core_extensions.rb
Parent: Object

Open Symbol to add new methods.

Methods

Public Instance methods

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>

[Validate]