Gary Wright wrote:
> OpenStruct doesn't define access via the indexing method:
> 
> info = OpenStruct.new
> 
> info.name = 'Gary'
> info[:name]              # undefined method


Hal Fulton wrote a class called "SuperStruct". Maybe it's what you're
looking for: http://sstruct.rubyforge.org/.

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