Module: I18n::Object::TranslationMethods::ClassMethods

Defined in:
lib/i18n/object/translation_methods.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args, &block) ⇒ Object (private)



25
26
27
# File 'lib/i18n/object/translation_methods.rb', line 25

def method_missing(method_name, *args, &block)
  translate(method_name, args) || super
end

Instance Method Details

#scopeObject



11
12
13
# File 'lib/i18n/object/translation_methods.rb', line 11

def scope
  @scope
end

#scope=(value) ⇒ Object



15
16
17
# File 'lib/i18n/object/translation_methods.rb', line 15

def scope=(value)
  @scope = value
end