class Tr8n::Decorators::Base
Public Class Methods
decorator()
click to toggle source
# File lib/tr8n/decorators/base.rb, line 35 def self.decorator # can alternate based on the format in the config Tr8n.config.decorator_class.new end
Public Instance Methods
decorate(translated_label, translation_language, target_language, translation_key, options = {})
click to toggle source
# File lib/tr8n/decorators/base.rb, line 40 def decorate(translated_label, translation_language, target_language, translation_key, options = {}) raise Tr8n::Exception.new('Must be implemented by the extending class') end
decorate_language_case(language_case, rule, original, transformed, options = {})
click to toggle source
# File lib/tr8n/decorators/base.rb, line 48 def decorate_language_case(language_case, rule, original, transformed, options = {}) raise Tr8n::Exception.new('Must be implemented by the extending class') end
inline_mode?()
click to toggle source
# File lib/tr8n/decorators/base.rb, line 44 def inline_mode? Tr8n.session.current_translator and Tr8n.session.current_translator.inline? end