how to get key and value from array of hash in ruby code example Example: get specific key value from array of hashes in ruby values = ary.map{|h| h[13]}.compact