method
new
v7.1.3.4 -
Show latest stable
-
0 notes -
Class: ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy
new(instance, method, var = "@#{method}", deprecator = nil)
public
Hide 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