Turn a Ruby Array into a Hash Published almost 11 years ago less than 1 min read I always forget the syntax for this: ary = [:a, 1, :b, 2, :c, 3] Hash[*ary] # => { :a => 1, :b => 2, :c => 3 } Share This Article Previous Next Please enable JavaScript to view the comments powered by Disqus.