Class: ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy

Inherits:
DeprecationProxy show all
Defined in:
lib/gems/activesupport-2.2.2/lib/active_support/deprecation.rb

Overview

Stand-in for @request, @attributes, @params, etc. which emits deprecation warnings on any method call (except inspect).

Instance Method Summary collapse

Methods inherited from DeprecationProxy

#inspect

Constructor Details

#initialize(instance, method, var = "@#{method}") ⇒ DeprecatedInstanceVariableProxy

:nodoc:



184
185
186
# File 'lib/gems/activesupport-2.2.2/lib/active_support/deprecation.rb', line 184

def initialize(instance, method, var = "@#{method}")
  @instance, @method, @var = instance, method, var
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveSupport::Deprecation::DeprecationProxy