class I18n::Locale::Tag::Rfc4646
Public Class Methods
# File lib/i18n/locale/tag/rfc4646.rb, line 23 def parser @@parser ||= Rfc4646::Parser end
# File lib/i18n/locale/tag/rfc4646.rb, line 27 def parser=(parser) @@parser = parser end
Public Instance Methods
# File lib/i18n/locale/tag/rfc4646.rb, line 46 def to_a members.collect { |attr| self.send(attr) } end
# File lib/i18n/locale/tag/rfc4646.rb, line 42 def to_s @tag ||= to_a.compact.join("-") end
# File lib/i18n/locale/tag/rfc4646.rb, line 38 def to_sym to_s.to_sym end