Logan Capaldo wrote:
...
> Alternative decandence:
> class Array
>   def to_hsh
>     require 'enumerator'
>     to_enum(:each_slice, 2).to_a.inject({}) { |h, (k, v)| h.update(k=>v) }

Injecting hash may be your idea of decadence, but it's too much hard 
work for me. I just splat myself:

     def to_hsh
       Hash[*self]

>   end
> end

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407