From: Sean O'Dell Date: 2002-02-25T11:02:49+09:00 Subject: Hash.each block parameters I ran into a problem where I should have called .each_key for a hash, but I was calling .each and so I wrote it like this: myhash.each do | key | end I couldn't get values out of the hash using the key during the block iterations. nil was always returned. I studied my code awhile and realized I should be using each_key. Hash.each provides TWO block parameters, not one like each_key (the key). I added the second parameter and things were fine again. It did this very quietly, no error or anything...I just got nil values and scratched my head until I figured it out. Is there a parameter to make Ruby stricter towards this sort of thing? Sean