From: "David A. Black" Date: 2007-11-01T08:24:23+09:00 Subject: Re: .each do |foo, bar| what does bar do? Hi -- On Thu, 1 Nov 2007, 7stud -- wrote: > David A. Black wrote: > . >> >> Do you guys mean what it's yielding, as opposed to what it's >> returning? >> > > Yes. Sorry. I'm still not understanding what the problem was with my example. I'm doing: yield(key,self[key]) and if you do: hash.each {|k,v| ... } you should be fine -- no warning. 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!