> rowObject.#{@headers[index]}
>

If you have the name of a method as a string, then you can use send() to 
call the method:

rowObject.send(@headers[index])

That even works with private methods, which violates encapsulation, but 
hey that's ruby.

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