Parent

Included Modules

I18n::Locale::Tag::Simple

Attributes

tag[R]

Public Class Methods

new(*tag) click to toggle source
    # File lib/i18n/locale/tag/simple.rb, line 19
19:         def initialize(*tag)
20:           @tag = tag.join('-').to_sym
21:         end
tag(tag) click to toggle source
    # File lib/i18n/locale/tag/simple.rb, line 10
10:           def tag(tag)
11:             new(tag)
12:           end

Public Instance Methods

subtags() click to toggle source
    # File lib/i18n/locale/tag/simple.rb, line 23
23:         def subtags
24:           @subtags = tag.to_s.split('-').map { |subtag| subtag.to_s }
25:         end
to_a() click to toggle source
    # File lib/i18n/locale/tag/simple.rb, line 35
35:         def to_a
36:           subtags
37:         end
to_s() click to toggle source
    # File lib/i18n/locale/tag/simple.rb, line 31
31:         def to_s
32:           tag.to_s
33:         end
to_sym() click to toggle source
    # File lib/i18n/locale/tag/simple.rb, line 27
27:         def to_sym
28:           tag
29:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.