class method
self.new
Ruby on Rails 7.1.6
Since v4.0.13Signature
self.new(instance, method, var = "@#{method}", deprecator = nil)
No documentation comment.
Parameters
-
instancereq -
methodreq -
varopt = "@#{method}" -
deprecatoropt = nil
Source
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 89
def initialize(instance, method, var = "@#{method}", deprecator = nil)
@instance = instance
@method = method
@var = var
ActiveSupport.deprecator.warn("DeprecatedInstanceVariableProxy without a deprecator is deprecated") unless deprecator
@deprecator = deprecator || ActiveSupport::Deprecation._instance
end
Defined in activesupport/lib/active_support/deprecation/proxy_wrappers.rb line 89
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy