class

Obelisk::SingleTokenIterator

Inherits Iterator < Enumerable < Reference < Object

Simple iterator for single tokens (avoids Crystal bug with [token].each.as())

Constructors

new(token : Token)
Source

Instance methods

next

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.

Source