Creates a new SyncEnumerator which enumerates rows of given Enumerable objects.
# File rexml/syncenumerator.rb, line 7
def initialize(*enums)
@gens = enums
@length = @gens.collect {|x| x.size }.max
end
Enumerates rows of the Enumerable objects.
# File rexml/syncenumerator.rb, line 25
def each
@length.times {|i|
yield @gens.collect {|x| x[i]}
}
self
end