Methods

Class Index [+]

Quicksearch

I18n::Locale::Tag::Rfc4646::Parser

Constants

PATTERN

Public Class Methods

match(tag) click to toggle source
    # File lib/i18n/locale/tag/rfc4646.rb, line 63
63:             def match(tag)
64:               c = PATTERN.match(tag.to_s).captures
65:               c[0..4] << (c[5].nil? ? c[6] : c[5])  << c[7] # TODO c[7] is grandfathered, throw a NotImplemented exception here?
66:             rescue
67:               false
68:             end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.