For example, I have array of single hashes
a = [{a: :b}, {c: :d}]
What is best way to convert it into this?
{a: :b, c: :d}
Just use
a.reduce(:merge) #=> {:a=>:b, :c=>:d}