class method
self.match
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
self.match(tag)
No documentation comment.
Parameters
-
tagreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/rfc4646.rb, line 65
def match(tag)
c = PATTERN.match(tag.to_s).captures
c[0..4] << (c[5].nil? ? c[6] : c[5]) << c[7] # TODO c[7] is grandfathered, throw a NotImplemented exception here?
rescue
false
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/rfc4646.rb line 65
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Locale::Tag::Rfc4646::Parser