Struct.new(*RFC4646_SUBTAGS)
# File lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/rfc4646.rb, line 24 def parser @@parser ||= Rfc4646::Parser end
# File lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/rfc4646.rb, line 28 def parser=(parser) @@parser = parser end
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.
# File lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/rfc4646.rb, line 19 def tag(tag) matches = parser.match(tag) new(*matches) if matches end
# File lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/rfc4646.rb, line 47 def to_a members.collect { |attr| self.send(attr) } end
Generated with the Darkfish Rdoc Generator 2.