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