Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n/complements/core_extension.rb

Instance Method Summary collapse

Instance Method Details

#to_currencyObject



25
26
27
# File 'lib/i18n/complements/core_extension.rb', line 25

def to_currency
  I18n.currencies(to_s)
end

#translate(options = {}) ⇒ Object Also known as: t



20
21
22
# File 'lib/i18n/complements/core_extension.rb', line 20

def translate(options = {})
  I18n.translate(self, options)
end