class Spectator::FilteredExampleIterator


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

Included Modules

Defined in:



Instance Method Summary

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Constructor Detail

def : Node, filter : NodeFilter) #

Creates a new iterator. The group is the example group to iterate through. The filter selects which examples (and groups) to iterate through.

[View source]

Instance Method Detail

def next #

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

[View source]
def rewind #

Restart the iterator at the beginning.

[View source]