Class: ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy
- Inherits:
-
DeprecationProxy
- Object
- DeprecationProxy
- ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy
- Defined in:
- activesupport/lib/active_support/deprecation/proxy_wrappers.rb
Overview
Stand-in for @request
, @attributes
, @params
, etc. which emits deprecation warnings on any method call (except inspect
).
Instance Method Summary collapse
-
#initialize(instance, method, var = "@#{method}") ⇒ DeprecatedInstanceVariableProxy
constructor
:nodoc:.
Methods inherited from DeprecationProxy
Constructor Details
#initialize(instance, method, var = "@#{method}") ⇒ DeprecatedInstanceVariableProxy
:nodoc:
47 48 49 |
# File 'activesupport/lib/active_support/deprecation/proxy_wrappers.rb', line 47 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