Methods
A
L
M
R
S
Instance Public methods
available_locales()
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/memoize.rb, line 14
def available_locales
  @memoized_locales ||= super
end
reload!()
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/memoize.rb, line 23
def reload!
  reset_memoizations!
  super
end
store_translations(locale, data, options = {})
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/memoize.rb, line 18
def store_translations(locale, data, options = {})
  reset_memoizations!(locale)
  super
end
Instance Protected methods
lookup(locale, key, scope = nil, options = {})
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/memoize.rb, line 30
def lookup(locale, key, scope = nil, options = {})
  flat_key  = I18n::Backend::Flatten.normalize_flat_keys(locale,
    key, scope, options[:separator]).to_sym
  flat_hash = memoized_lookup[locale.to_sym]
  flat_hash.key?(flat_key) ? flat_hash[flat_key] : (flat_hash[flat_key] = super)
end
memoized_lookup()
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/memoize.rb, line 37
def memoized_lookup
  @memoized_lookup ||= Hash.new { |h, k| h[k] = {} }
end
reset_memoizations!(locale=nil)
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/memoize.rb, line 41
def reset_memoizations!(locale=nil)
  @memoized_locales = nil
  (locale ? memoized_lookup[locale.to_sym] : memoized_lookup).clear
end