Class: Locale::Tag::Illegular
- Defined in:
- lib/locale/tag/illegular.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) ⇒ Illegular
constructor
A new instance of Illegular.
Methods inherited from Simple
#==, #country, #eql?, #hash, #inspect, parse, #to_s, #to_str
Methods included from Util::Memoizable
#clear, #freeze, #freeze_without_memoizable, included, #memoize
Constructor Details
#initialize(tag) ⇒ Illegular
Returns a new instance of Illegular.
20 21 22 23 24 |
# File 'lib/locale/tag/illegular.rb', line 20 def initialize(tag) tag = "en" if tag == nil || tag.empty? @language = tag @tag = tag end |