# File lib/i18n/locale/fallbacks.rb, line 69
69: def [](locale)
70: raise InvalidLocale.new(locale) if locale.nil?
71: locale = locale.to_sym
72: super || store(locale, compute(locale))
73: end
# File lib/i18n/locale/fallbacks.rb, line 87
87: def compute(tags, include_defaults = true)
88: result = Array(tags).collect do |tag|
89: tags = I18n::Locale::Tag.tag(tag).self_and_parents.map! { |t| t.to_sym }
90: tags.each { |tag| tags += compute(@map[tag]) if @map[tag] }
91: tags
92: end.flatten
93: result.push(*defaults) if include_defaults
94: result.uniq
95: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.