instance method
expand
Ruby on Rails 7.0.10
Since v7.0.10 Last seen in v7.1.6Available in: v7.0.10 v7.1.6
Signature
expand(target, value, block)
Return the parts needed to make this call, with the given input values.
Returns an array of the form:
[target, block, method, *arguments]
This array can be used as such:
target.send(method, *arguments, &block)
The actual invocation is left up to the caller to minimize call stack pollution.
Parameters
-
targetreq -
valuereq -
blockreq
Source
# File activesupport/lib/active_support/callbacks.rb, line 394
def expand(target, value, block)
[target, block, @method_name]
end
Defined in activesupport/lib/active_support/callbacks.rb line 394
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Callbacks::CallTemplate::MethodCall