Parent

Included Modules

Class Index [+]

Quicksearch

I18n::Locale::Tag::Simple

Attributes

tag[R]

Public Class Methods

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

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.