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
Constants included from Util::Memoizable
Util::Memoizable::MEMOIZED_IVAR
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
Methods included from Util::Memoizable
#_memoize, #_memoize_dup, #clear, #freeze, #freeze_without_memoizable, included, #memoize, #memoize_clear, #memoize_dup, #memoize_impl
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 |