From: 7stud -- Date: 2011-05-05T11:25:38+09:00 Subject: Re: Creating variables on an OpenStruct with dynamic names > 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/.