Module: I18n::Debug::Hook
- Defined in:
- lib/i18n/debug.rb
Instance Method Summary collapse
Instance Method Details
#lookup(*args) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/i18n/debug.rb', line 31 def lookup(*args) super.tap do |result| = args.last.is_a?(Hash) ? args.pop : {} separator = [:separator] || I18n.default_separator key = I18n.normalize_keys(*args, separator).join(separator) Debug.on_lookup[key, result] end end |