Attribute lookup
suggest changeAttributes can be accessed strings and symbols as keys. Numerical indexes also work.
Person = Struct.new :name
alice = Person.new 'Alice'
alice['name'] # => "Alice"
alice[:name] # => "Alice"
alice[0] # => "Alice"
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents