class OpenStruct

def [](name)


person[:age] # => 70, same as person.age
person = OpenStruct.new("name" => "John Smith", "age" => 70)
require "ostruct"

Returns the value of an attribute, or +nil+ if there is no such attribute.

ostruct[name] -> object
:call-seq:
def [](name)
  @table[name.to_sym]
end