External iterators in Ruby.