module Iterator::IteratorWrapper

Overview

IteratorWrapper eliminates some boilerplate when defining an Iterator that wraps another iterator.

To use it, include this module in your iterator and make sure that the wrapped iterator is stored in the @iterator instance variable.

Direct including types

Iterator::CompactMap(I, T, U)

Defined in:

Instance Method Summary

Macro Summary

Instance Method Detail

def rewind

Rewinds the wrapped iterator and returns self.


Macro Detail

macro wrapped_next

Invokes next on the wrapped iterator and returns stop if the given value was a Stop. Otherwise, returns the value.