class SuchMeta::I18nFetcher
Attributes
action[R]
controller[R]
Public Class Methods
new(tag_type, controller, action)
click to toggle source
Calls superclass method
SuchMeta::Fetcher::new
# File lib/such_meta/fetchers/i18n_fetcher.rb, line 5 def initialize(tag_type, controller, action) super(tag_type) @controller = controller @action = action end
Public Instance Methods
call()
click to toggle source
# File lib/such_meta/fetchers/i18n_fetcher.rb, line 11 def call I18n.t(translation_key, :raise => true) rescue I18n::MissingTranslationData nil end
Private Instance Methods
translation_key()
click to toggle source
# File lib/such_meta/fetchers/i18n_fetcher.rb, line 19 def translation_key fail OverrideInSubclassError end