Simple
Locale tag class for POSIX locale
ja
ja_JP
ja_JP.UTF-8
ja_JP.UTF-8@Osaka
C/POSIX (-> en_US)
Returns an Array of tag-candidates order by priority. Use Locale.candidates instead of this method.
# File lib/locale/tag/posix.rb, line 71 def candidates [self.class.new(language, region, charset, modifier), #ja_JP.UTF-8@Modifier self.class.new(language, region, charset), #ja_JP.UTF-8 self.class.new(language, region, nil, modifier), #ja_JP@Modifier self.class.new(language, region, nil, nil), #ja_JP@Modifier self.class.new(language, nil, charset, modifier), #ja.UTF-8@Modifier self.class.new(language, nil, charset), #ja.UTF-8 self.class.new(language, nil, nil, modifier), #ja@Modifier self.class.new(language)] #ja end
Set the charset.
# File lib/locale/tag/posix.rb, line 58 def charset=(val) clear @charset = val end
Generated with the Darkfish Rdoc Generator 2.