Broken tag class.
# File lib/locale/tag/irregular.rb, line 20 def initialize(tag) tag = "en" if tag == nil or tag == "" super(tag.to_s) @tag = tag end
Returns an Array of tag-candidates order by priority.
# File lib/locale/tag/irregular.rb, line 27 def candidates [Irregular.new(tag)] end
Conver to the klass(the class of Language::Tag)
# File lib/locale/tag/irregular.rb, line 34 def convert_to(klass) klass.new(tag) end