From: 7stud -- Date: 2007-11-01T09:21:24+09:00 Subject: Re: .each do |foo, bar| what does bar do? David A. Black wrote: > Thanks for the explanation on the &block question. > > 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. > Yes. But there is a problem when you do: hash.each {|arr| ...} On the other hand, when you write: hash.each {|arr| ...} with the actual Hash#each method, there is no problem. -- Posted via http://www.ruby-forum.com/.