class String

TODO: Rewrite this “not DRY” code

Public Instance Methods

l(options = {})
Alias for: localize
localize(options = {}) click to toggle source
# File lib/i18n/complements/core_extension.rb, line 9
def localize(options = {})
  I18n.localize(self, options)
end
Also aliased as: l
t(options = {})
Alias for: translate
to_currency() click to toggle source
# File lib/i18n/complements/core_extension.rb, line 14
def to_currency
  I18n.currencies(self)
end
translate(options = {}) click to toggle source
# File lib/i18n/complements/core_extension.rb, line 4
def translate(options = {})
  I18n.translate(self, options)
end
Also aliased as: t