Methods

Included Modules

Locale::Tag

Language tag / locale identifiers.

Public Instance Methods

parse(tag) click to toggle source

Parse a language tag/locale name and return Locale::Tag object.

  • tag: a tag as a String. e.g.) ja-Hira-JP

  • Returns: a Locale::Tag subclass.

    # File lib/locale/tag.rb, line 28
28:     def parse(tag)
29:       # Common is not used here.
30:       [Simple, Common, Rfc, Cldr, Posix].each do |parser|
31:         ret = parser.parse(tag)
32:         return ret if ret
33:       end
34:       Locale::Tag::Irregular.new(tag)
35:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.