fork download
  1. hash = {
  2. 1 => ["a", 42],
  3. 3 => ["c", 7],
  4. 2 => ["b", 13],
  5. }
  6.  
  7. max = nil
  8. hash.each do |id,(string, number)|
  9. max = "#{id}. #{string}, #{number}"
  10. end
  11. puts max
Success #stdin #stdout 0.01s 7452KB
stdin
Standard input is empty
stdout
2. b, 13