instance method lookup

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

lookup(locale, key, scope = nil, options = {})

No documentation comment.

Parameters

locale req
key req
scope opt = nil
options opt = {}
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/memoize.rb, line 31
        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

Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/memoize.rb line 31 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n::Backend::Memoize

Type at least 2 characters to search.

↑↓ navigate · open · esc close