From: "David A. Black" Date: 2007-11-01T06:14:44+09:00 Subject: Re: .each do |foo, bar| what does bar do? Hi -- On Thu, 1 Nov 2007, Brian Adkins wrote: > 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. Do you guys mean what it's yielding, as opposed to what it's returning? David -- Upcoming training by David A. Black/Ruby Power and Light, LLC: * Advancing With Rails, Edison, NJ, November 6-9 * Advancing With Rails, Berlin, Germany, November 19-22 * Intro to Rails, London, UK, December 3-6 (by Skills Matter) See http://www.rubypal.com for details!