Class: ActiveSupport::Deprecation::DeprecationProxy
- Defined in:
- lib/gems/activesupport-2.2.2/lib/active_support/deprecation.rb
Overview
:nodoc:
Direct Known Subclasses
DeprecatedConstantProxy, DeprecatedInstanceVariableProxy, DeprecatedObjectProxy
Instance Method Summary collapse
-
#inspect ⇒ Object
Don’t give a deprecation warning on inspect since test/unit and error logs rely on it for diagnostics.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(called, *args, &block) ⇒ Object (private)
159 160 161 162 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/deprecation.rb', line 159 def method_missing(called, *args, &block) warn caller, called, args target.__send__(called, *args, &block) end |
Instance Method Details
#inspect ⇒ Object
Don’t give a deprecation warning on inspect since test/unit and error logs rely on it for diagnostics.
154 155 156 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/deprecation.rb', line 154 def inspect target.inspect end |