class Locale::Tag::Irregular

Broken tag class.

Public Class Methods

new(tag) click to toggle 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

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
def candidates
  [Irregular.new(tag)]
end