Ruby on Rails latest stable (v7.1.3.2)
-
0 notes
- Superclass:
ActiveSupport::Deprecation::DeprecationProxy
DeprecatedObjectProxy transforms an object into a deprecated one. It takes an object, a deprecation message, and a deprecator.
deprecated_object = ActiveSupport::Deprecation::DeprecatedObjectProxy.new(Object.new, "This object is now deprecated", ActiveSupport::Deprecation.new) # => #<Object:0x007fb9b34c34b0> deprecated_object.to_s DEPRECATION WARNING: This object is now deprecated. (Backtrace) # => "#<Object:0x007fb9b34c34b0>"