From: Johnny Morrice Date: 2011-05-28T21:33:05+09:00 Subject: Re: Hash .each and different action for each key > myhashtable= {:a => 'foo', :b => 'moo'} > > myhashtable.each {|k, v| actions[k].call(v)} That's what I proposed but it's a bit daft no? I mean, you're associating a function with each key, there are already constructs which do this! What's wrong with an Array of objects? It has the same semantics, in this limited case, and is 100 times less weird.