Method: REXML::SyncEnumerator#initialize
- Defined in:
- lib/rexml/syncenumerator.rb
#initialize(*enums) ⇒ SyncEnumerator
Creates a new SyncEnumerator which enumerates rows of given Enumerable objects.
7 8 9 10 |
# File 'lib/rexml/syncenumerator.rb', line 7 def initialize(*enums) @gens = enums @length = @gens.collect {|x| x.size }.max end |