Flowdock
v1_8_7_330 - Show latest stable - 0 notes - Superclass: Object

SyncEnumerator creates an Enumerable object from multiple Enumerable objects and enumerates them synchronously.

Example

require 'generator'

s = SyncEnumerator.new([1,2,3], ['a', 'b', 'c'])

# Yields [1, 'a'], [2, 'b'], and [3,'c']
s.each { |row| puts row.join(', ') }
Show files where this class is defined (1 file)
Register or log in to add new notes.