From: Brian Tickler Date: 2009-09-19T08:19:39+09:00 Subject: Re: Getting to one attribute of my marshalled array of objects Fabian Streitel wrote: > You should also read about YAML: > http://www.ruby-doc.org/core/classes/YAML.html. Thanks, I did look at YAML which has about a page in pickaxe like standard Marshalling, and I might use it later but for this assignment I just want the simplest way to reliably write and read my object (containing an array of objects) and read it back. The marshalling *seems* to be working in that when I open the cars.data file it looks like it has data on the child Car objects, but I can't tell for sure yet until I actually figure out how to get all the way to my Car attributes :). Essentially I want a statement that acts like this: cars = CarInventory.new # handle for object which is array of Cars if !cars.car[0].vin # grab the first car from CarInventory and check if the VIN is nil That second statement does not fly and no matter how I deconstruct it I can't seem to get at the array that CarInventory represents here. -- Posted via http://www.ruby-forum.com/.