arr = ['A', 'B', 'C']arr.each(){|i| puts i} for value in arr puts valueend
Standard input is empty
A B C A B C
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!