Class: ActiveSupport::Deprecation::DeprecationProxy
- Defined in:
- lib/active_support/deprecation/proxy_wrappers.rb
Overview
:nodoc:
Direct Known Subclasses
Class Method Summary collapse
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
Class Method Details
.new(*args, &block) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/active_support/deprecation/proxy_wrappers.rb', line 6 def self.new(*args, &block) object = args.first return object unless object super 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.
17 18 19 |
# File 'lib/active_support/deprecation/proxy_wrappers.rb', line 17 def inspect target.inspect end |