On Sep 27, 1:36 am, Joshua Muheim <[EMAIL PROTECTED]> wrote: > Hi all > > Is there a method to iterate over an array with the index? Something > like > > my_array.each_with_index do |obj, index| > ... > end > > Just couldn't find such a method... maybe I worked too much today... ;-) > > Thanks > Josh > -- > Posted viahttp://www.ruby-forum.com/.
Won't each_with_index suffice? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

