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

Represents an iteration loop, e.g.:

  iter do |*args|
    assign args to var
    body
  end

A new block is created so that dynamic variables created inside the loop do not persist once the loop has terminated.

If the iter node is a POSTEXE node, indicates that the expression should be evaluated when the program terminates.

Methods

body   iter   members   var  

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

an assignment node which assigns the next value in the sequence to a variable, which may or may not be local. May also be a multiple assignment.

[Validate]