Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/money/core_extensions.rb

Overview

Open Symbol to add new methods.

Instance Method Summary collapse

Instance Method Details

#to_currencyMoney::Currency

Converts the current symbol into a Currency object.

Examples:

:ars.to_currency #=> #<Money::Currency id: ars>

Returns:

Raises:



78
79
80
# File 'lib/money/core_extensions.rb', line 78

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