From: tonys@... (tony summerfelt) Date: 2001-01-03T14:10:02+09:00 Subject: [ruby-talk:8554] initializing objects On Tue, 2 Jan 2001 13:47:43 +0900, Dave Thomas wrote: > Here I think I'd be looking at an array or some other collection: > planets.each do |planet| > planet.ships += planet.production > end if this code would iterate over all the defined planet objects, that would work. i guess i can live with 26 lines initializing each planet...but i think that really needs to be addressed in ruby. i'm envisioning a multiplayer server/client version where i won't have just 26 planets...more like 1000. is there NO way to initialize a large number of objects in ruby? -- *---------------------------------------- | |http://www.biosys.net/snowzone | |remove myspleen to email | *-----------------------