From: Louis J Scoras Date: 2006-10-30T01:56:30+09:00 Subject: Re: Define a hash using %q? On 10/29/06, Joel VanderWerf wrote: > Ultra decadent: > > irb(main):017:0> class Array; def -@; Hash[*self]; end; end > => nil > irb(main):018:0> -%w{ a b c d } > => {"a"=>"b", "c"=>"d"} Nice, but one little edit: %s/decadent/obfuscated/g Still neat though. -- Lou.