class Locale::Tag::Irregular
Broken tag class.
Public Class Methods
Source
# 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
Calls superclass method
Public Instance Methods
Source
# File lib/locale/tag/irregular.rb, line 27 def candidates [Irregular.new(tag)] end
Returns an Array of tag-candidates order by priority.
Private Instance Methods
Source
# File lib/locale/tag/irregular.rb, line 33 def convert_to(klass) klass.new(tag) end
Conver to the klass(the class of Language::Tag)