Class: ActiveSupport::Deprecation::DeprecationProxy
Do not use. This class is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | activesupport/lib/active_support/deprecation/proxy_wrappers.rb |
Class Method Summary
- .new(*args, **kwargs, &block) ⇒ DeprecationProxy constructor
Instance Method Summary
-
#inspect
Don’t give a deprecation warning on inspect since test/unit and error logs rely on it for diagnostics.
- #method_missing(called, *args, &block) private
Constructor Details
.new(*args, **kwargs, &block) ⇒ DeprecationProxy
# File 'activesupport/lib/active_support/deprecation/proxy_wrappers.rb', line 6
def self.new(*args, **kwargs, &block) object = args.first return object unless object super end
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(called, *args, &block) (private)
[ GitHub ]# File 'activesupport/lib/active_support/deprecation/proxy_wrappers.rb', line 22
def method_missing(called, *args, &block) warn caller_locations, called, args target.__send__(called, *args, &block) end
Instance Method Details
#inspect
Don’t give a deprecation warning on inspect since test/unit and error logs rely on it for diagnostics.
# File 'activesupport/lib/active_support/deprecation/proxy_wrappers.rb', line 17
def inspect target.inspect end