From: Elias Orozco Date: 2009-02-03T02:13:32+09:00 Subject: How to know the index value on the each method Hello, I was wondering if there is a way to access the current index value when using the each method to iterate over an array. For example, @pancakes.each do |pancake| puts pancake # How can I ask which is the current index value of pancake. I wish to know in what position is the pancake object on the array without using a local integer variable to count up. end Thanks, El鱈as -- Posted via http://www.ruby-forum.com/.