From: Siep Korteling Date: 2008-02-16T02:13:07+09:00 Subject: Re: Which data-type can I use for this task? Adna rim wrote: > Hi, > I have a little question. I have a list here like this: > > street > house > person > age > > street > house > person > age > > street > house > person > age > .... > > Now I wanna store them in a data type like an array. I tied this here: > > information = [Street=[],House=[],Person=[],Age=[]] > > but If I wanna now fill it like > > information.Street << firstentry > > I always get an error telling undefined method Street... With which > datatype do I best realize this? I prefer a Struct is for this. row=Struct.new(:street,:house) d=[] d<