Class: ActiveSupport::Deprecation::DeprecationProxy
- Inherits:
-
Object
- Object
- ActiveSupport::Deprecation::DeprecationProxy
- Defined in:
- activesupport/lib/active_support/deprecation/proxy_wrappers.rb
Overview
:nodoc:
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (Object) inspect
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
- (Object) method_missing(called, *args, &block) (private)
22 23 24 25 |
# File 'activesupport/lib/active_support/deprecation/proxy_wrappers.rb', line 22 def method_missing(called, *args, &block) warn caller, called, args target.__send__(called, *args, &block) end |
Class Method Details
+ (Object) new(*args, &block)
6 7 8 9 10 11 |
# File 'activesupport/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
- (Object) inspect
Don't give a deprecation warning on inspect since test/unit and error logs rely on it for diagnostics.
17 18 19 |
# File 'activesupport/lib/active_support/deprecation/proxy_wrappers.rb', line 17 def inspect target.inspect end |