class

Spectator::NodeIterator

Inherits Iterator / Enumerable / Reference / Object

Iterates through all nodes in a group and its nested groups. Nodes are iterated in pre-order.

Constructors

new(group : Node)

Creates a new iterator. The group is the example group to iterate through.

Source

Instance methods

next

Retrieves the next Node. If there are none left, then Iterator::Stop is returned.

Source
rewind

Restart the iterator at the beginning.

Source