I can only find methods that look for specific elements of an array.
During my objects.each |a| loop, I want to know when I'm at the final element so I can have a loop like:
puts a.name + ","
It is common that, when leaning a new language, people tend to looking for something that familiar with:)
Your specific questions could easily be solved by using
objects.each_with_index do |object ,index| if index == (object.length -1) then puts a.name + "," else puts a.name end end