I am trying to get the iteration number of a loop I am on. I tried
objects.each do |object, i|
but i is nil
Any ideas?
I am trying to get the iteration number of a loop I am on. I tried
objects.each do |object, i|
but i is nil
Any ideas?
On Thu, Aug 7, 2008 at 3:53 PM, Joel Saltzmanjoelh
[email protected] wrote:
I am trying to get the iteration number of a loop I am on. I tried
objects.each do |object, i|
objects.each_with_index do |o, i|
martin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs