James Byrne wrote:

> irb(main):003:0> a.to_a.each {|n| puts "The index is: #{n.index}"}

should be:

a.to_a.each {|n| puts "The index is: #{a.to_a.index(n)}"}

sigh...


-- 
Posted via http://www.ruby-forum.com/.