Class: Locale::Tag::Irregular
- Defined in:
- lib/locale/tag/irregular.rb
Overview
Broken tag class.
Constant Summary
Constants inherited from Simple
Simple::ALPHA, Simple::ALPHANUM, Simple::DIGIT, Simple::LANGUAGE, Simple::REGION, Simple::TAG_RE
Instance Attribute Summary
Attributes inherited from Simple
Instance Method Summary collapse
-
#candidates ⇒ Object
Returns an Array of tag-candidates order by priority.
-
#initialize(tag) ⇒ Irregular
constructor
A new instance of Irregular.
Methods inherited from Simple
#<=>, #==, #country, #eql?, #hash, #inspect, parse, #to_s, #to_str
Constructor Details
#initialize(tag) ⇒ Irregular
Returns a new instance of Irregular.
20 21 22 23 24 |
# 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 |