h = { bacon: "protein", apple: "fruit" } h.each { |k, v| puts "Key=#{k}, Value=#{v}" }
Standard input is empty
Key=bacon, Value=protein Key=apple, Value=fruit
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!