From: Neela megha shyam Chivukula Date: 2009-05-22T19:49:37+09:00 Subject: How does array.each element work? Hi All, Here is my code snippet:- my_array = [1,2,3] puts my_array.each {} or my_array = [1,2,3] my_array.each {|x| puts x} O/p:- 1 2 3 I want to know how the array.each works. How the compiler interprets and prints. Thanks and regards, Neela. -- Posted via http://www.ruby-forum.com/.