On Mar 30, 2007, at 4:15 PM, Jan Friedrich wrote:

> Gary Wright schrieb:
>> OpenStruct doesn't define access via the indexing method:
>>
>> info = OpenStruct.new
>>
>> info.name = 'Gary'
>> info[:name]              # undefined method
> It's Ruby, define it. :)

Of course.  I was just pointing out that OpenStruct didn't
actually provide the features that the OP had asked for.

You can always roll your own.


Gary Wright