Parent

Methods

Files

FastGettext::TranslationRepository::Logger

This should be used in a TranslationRepository::Chain, so tat untranslated keys can be found Responsibility:

- log every translation call

Attributes

callback[RW]

Public Class Methods

new(name,options={}) click to toggle source
# File lib/fast_gettext/translation_repository/logger.rb, line 11
def initialize(name,options={})
  super
  self.callback = options[:callback]
end

Public Instance Methods

[](key) click to toggle source
# File lib/fast_gettext/translation_repository/logger.rb, line 16
def [](key)
  callback.call(key)
  nil
end
plural(*keys) click to toggle source
# File lib/fast_gettext/translation_repository/logger.rb, line 21
def plural(*keys)
  callback.call(keys)
  []
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.