Locale::Tag::Irregular

Broken tag class.

Public Class Methods

new(tag) click to toggle source
    # File lib/locale/tag/irregular.rb, line 20
20:       def initialize(tag)
21:         tag = "en" if tag == nil or tag == ""
22:         super(tag.to_s)
23:         @tag = tag
24:       end

Public Instance Methods

candidates() click to toggle source

Returns an Array of tag-candidates order by priority.

    # File lib/locale/tag/irregular.rb, line 27
27:       def candidates
28:         [Irregular.new(tag)]
29:       end

Private Instance Methods

convert_to(klass) click to toggle source

Conver to the klass(the class of Language::Tag)

    # File lib/locale/tag/irregular.rb, line 34
34:       def convert_to(klass)
35:         klass.new(tag)
36:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.