From: Robert Dober Date: 2008-08-18T22:57:09+09:00 Subject: Re: Hash#each vs Hash#each_pair On Mon, Aug 18, 2008 at 3:46 PM, Mateusz Tybura wrote: > hash = {1 => 'one', 2 => 'two', 3 => 'three'} > > p "p hash : #{hash}" > p "hash.each" > hash.each do |e| #e is [key,value] > p e > end Well explained indeed, it might however be worth noting for nubies that the convenient hash.each do |key, value| end works too. BTW even hash.each_pair{ |x| p x } works, although it gives an expectable warning. R.