From: Carl Youngblood Date: 2002-11-06T03:14:25+09:00 Subject: Re: Extending Hash Thanks for the help, Gavin! Carl ----- Original Message ----- > Anyway, overriding each is not too hard. Here's how you could implement > Hash#each from scratch if you wanted to. You can hopefully use this to > implement the functionality you want. (Warning, not tested.) > > class Hash > def each(&block) > self.keys.each do |key| > value = self.[key] > block.call(key, value) > end > end > end > > > Hope this helps, > Gavin >