class method
self.tag
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
self.tag(tag)
Parses the given tag and returns a Tag instance if it is valid. Returns false if the given tag is not valid according to RFC 4646.
Parameters
-
tagreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/rfc4646.rb, line 20
def tag(tag)
matches = parser.match(tag)
new(*matches) if matches
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/rfc4646.rb line 20
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Locale::Tag::Rfc4646