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. :)
class OpenStruct
  def [] arg
    self.send arg
end


regards,
Jan