From: Dan Date: 2007-10-22T08:36:40+09:00 Subject: Re: How to use a hash inside a Struct? ------=_Part_13729_7754538.1193009803192 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/22/07, Thomas Adam wrote:On 22/10/2007, Jayson Williams wrote: > Is there a way to use a hash inside a Structure. Something like: > > object = Struct.new(Hash.new(), :attr2, :attr3) > Do you mean to do something like this?: Thing = Struct.new(:attr1,:attr2,:attr3) t = Thing.new(Hash.new, nil, nil) > ------=_Part_13729_7754538.1193009803192--