class I18n::Locale::Tag::Rfc4646
def parser
def parser @@parser ||= Rfc4646::Parser end
def parser=(parser)
def parser=(parser) @@parser = parser end
def tag(tag)
Parses the given tag and returns a Tag instance if it is valid.
def tag(tag) matches = parser.match(tag) new(*matches) if matches end
def to_a
def to_a members.collect { |attr| self.send(attr) } end
def to_s
def to_s @tag ||= to_a.compact.join("-") end
def to_sym
def to_sym to_s.to_sym end