From: Jeremy Weiskotten Date: 2008-01-10T09:00:10+09:00 Subject: Re: About array to hash conversion class Array def to_hash inject({}) { |m, e| m[e[0]] = e[1]; m } end end -- Posted via http://www.ruby-forum.com/.