From: Robert Dober Date: 2007-07-17T00:19:49+09:00 Subject: Re: clean nice way (hash) On 7/16/07, SonOfLilit wrote: > Wait, no. > > hash.map{|k, v| k, {'name' => v}}.to_hash > Well that is very nice;), but where does #to_hash come from?? (Facets, maybe?) I suppose it should behave like def to_hash Hash[*self] end Robert -- I always knew that one day Smalltalk would replace Java. I just didn't know it would be called Ruby -- Kent Beck