my_hash = { one: 1, two: 2, three: 3 }my_hash.each { |k, v| print k, " ", v, "\n" }
Standard input is empty
one 1 two 2 three 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!