method
expand
v8.0.0 -
Show latest stable
- Class:
ActiveSupport::Callbacks::Callback::CallTemplate::MethodCall
expand(target, value, block)public
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.