| Class | REXML::SyncEnumerator |
| In: |
rexml/syncenumerator.rb
|
| Parent: | Object |
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
ruby-doc.org is a service of James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, AZ.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.