# File lib/generator.rb, line 143
  def next
    raise EOFError.new("no more elements available") if end?
    @index += 1
    @queue.shift
  end