Methods
Attributes
[R] | defaults |
Class Public methods
new(*mappings)
Link
Instance Public methods
[](locale)
Link
defaults=(defaults)
Link
map(mappings)
Link
Instance Protected methods
compute(tags, include_defaults = true)
Link
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/fallbacks.rb, line 86 def compute(tags, include_defaults = true) result = Array(tags).collect do |tag| tags = I18n::Locale::Tag.tag(tag).self_and_parents.map! { |t| t.to_sym } tags.each { |tag| tags += compute(@map[tag]) if @map[tag] } tags end.flatten result.push(*defaults) if include_defaults result.uniq end