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