Creates a new SyncEnumerator which enumerates rows of given Enumerable objects.
# File rexml/syncenumerator.rb, line 7
def initialize(*enums)
@gens = enums
@biggest = @gens[0]
@gens.each {|x| @biggest = x if x.size > @biggest.size }
end
Enumerates rows of the Enumerable objects.
# File rexml/syncenumerator.rb, line 26
def each
@biggest.zip( *@gens ) {|a|
yield(*a[1..-1])
}
self
end