From: Carlos Date: 2004-11-10T21:17:29+09:00 Subject: Re: SyncEnumerator ["Sean E. Russell" , 2004-11-09 14.06 CET] > Ok. Then I'd like to suggest replacing the existing SyncEnumerator in > Generator.rb with the one I've provided. But: class SyncEnumerator2 ... end f = File.new("/etc/passwd") g = 0..10 SyncEnumerator2.new(f, g).each do |line, nr| print nr, ": ", line end produces: p.rb:11:in `initialize': undefined method `size' for # (NoMethodError) from p.rb:11:in `each' from p.rb:11:in `initialize' from p.rb:37:in `new' from p.rb:37 --