From: Old Echo Date: 2008-01-02T08:53:47+09:00 Subject: Re: transform hash key from string into symbol Hi Steve, Thanks for your quick response, but I'm afraid that didn't do the trick. It looks like the block just completes without actually changing anything, or at least it doesn't transform what needs to be transformed. Do you have any other suggestions? Steve Ross wrote: > class Hash > def super_cool_hash_key_string_to_sym_transformation > self.each_key{|k| k = k.to_sym} > self > end > end > > -or- > > my_hash.each_key{|k| k = k.to_sym} > > Either of these work for you? -- Posted via http://www.ruby-forum.com/.