Class | Locale::Tag::Simple |
In: |
lib/locale/tag/simple.rb
|
Parent: | Object |
Abstract language tag class. This class has <language>, <region> which all of language tag specifications have.
ALPHA | = | '[a-z]' |
DIGIT | = | '[0-9]' |
ALPHANUM | = | "[a-zA-Z0-9]" |
LANGUAGE | = | "(#{ALPHA}{2,3})" |
REGION | = | "(#{ALPHA}{2}|#{DIGIT}{3})" |
TAG_RE | = | /\A#{LANGUAGE}(?:[_-]#{REGION})?\Z/i |
language | [R] | |
region | [R] | |
tag | [RW] | tag is set when .parse method is called. This value is used when the program want to know the original String. |
Returns an Array of tag-candidates order by priority. Use Locale.candidates instead of this method.