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

Represents a loop constructed with the ‘for’ keyword, e.g.:

  for var in iter do
    body
  end

This is equivalent to:

  iter.each do |*args|
  assign args to var
  body

end

Except that a new block is not created.

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]