From: Gavin Kistner Date: 2004-02-17T22:54:52+09:00 Subject: Re: Hash like JS Hash (code) Tim Sutherland wrote: > Are you familiar with the `Struct` class? > > Person = Struct.new(:name, :weight, :age, :feet) > > gavin = Person.new('Gavin', 171, 31, ['left', 'right']) > gavin.name # -> 'Gavin' > gavin.weight # -> 171 > gavin.age += 31 # -> 32 Of course I'm not familiar with it, otherwise why would I have made such an un-Ruby-like hack? :) [Still, it was fun an informative to do.] Thanks for the tip :) -- (-, /\ \/ / /\/