Class: Locale::Tag::Illegular

Broken tag class.

Public Class Methods


new (tag)

    # File lib/locale/tag/illegular.rb, line 20
20:       def initialize(tag)
21:         tag = "en" if tag == nil || tag.empty?
22:         @language = tag
23:         @tag = tag
24:       end

Public Instance Methods


candidates ()

Returns an Array of tag-candidates order by priority.

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