Namespace
Methods
I
T
Constants
RFC4646_SUBTAGS = [ :language, :script, :region, :variant, :extension, :privateuse, :grandfathered ]
 
RFC4646_FORMATS = { :language => :downcase, :script => :capitalize, :region => :upcase, :variant => :downcase }
 
Class Public methods
implementation()

Returns the current locale tag implementation. Defaults to +I18n::Locale::Tag::Simple+.

# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag.rb, line 11
def implementation
  @@implementation ||= Simple
end
implementation=(implementation)

Sets the current locale tag implementation. Use this to set a different locale tag implementation.

# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag.rb, line 16
def implementation=(implementation)
  @@implementation = implementation
end
tag(tag)

Factory method for locale tags. Delegates to the current locale tag implementation.

# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag.rb, line 21
def tag(tag)
  implementation.tag(tag)
end