From: Brian Adkins Date: 2007-11-01T06:06:04+09:00 Subject: Re: .each do |foo, bar| what does bar do? On Oct 31, 3:16 pm, "David A. Black" wrote: > On Thu, 1 Nov 2007, 7stud -- wrote: > > David A. Black wrote: > >> On Sun, 28 Oct 2007, 7stud -- wrote: > >>> That suffers the same problem as David Black's example. > > >> What problem did mine suffer from? > > > It doesn't return an array. > > Was it supposed to? I think so, if you want to avoid the "multiple value" warnings shown in the earlier post. I suppose someone could look at the Ruby source to see if that's what it's actually doing, but I suspect there is a good chance it is, judging from the behavior. However, I think that would've just cluttered up the example since it's not germane to your purpose.