Class Node::BLOCK_PASS
In: ext/nodeinfo.c
Parent: Node

Represents an object being passed to a method as a block, e.g.:

  foo(&bar)

The body node is first evaluates to get an object, then to_proc to convert it into a proc if necessary. The iter node is then evaluated to call a method, passing the proc as a block parameter to the method.

Methods

body   iter   members  

Public Class methods

Return an array of strings containing the names of the node class‘s members.

Public Instance methods

the body of the loop

an expression which calls the desired iteration method, usually recv.each

[Validate]