# array = [["a", 1], ["b", 2], ["c", 3]]
array = [[:a, 1], [:b, 2], [:c, 3]]
# convert array to hash
hash = Hash[array]
puts hash
# Stdout/output:
# {:a=>1, :b=>2, :c=>3}
Hash['key1', 'value1', 'key2', 'value2']
# => {"key1"=>"value1", "key2"=>"value2"}