method

expand

Importance_1
v7.0.0 - Show latest stable - 0 notes - Class: 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.

Show source
Register or log in to add new notes.