Development Ruby

require 'generator'
l = ["junk1", 1, "junk2", 2, "junk3", "junk4", 3, "junk5"]
g = Generator.new(l)
g.next                                # => "junk1"
g.next                                # => 1
g.next                                # => "junk2"