📅  最后修改于: 2022-03-11 14:47:36.137000             🧑  作者: Mango
# short version
hash.key(hash.values.max)
# longer more flexable version:
puts hash.max_by(&:last).first
#without the .first you get the key and the value pair as array