From: James Edward Gray II Date: 2006-09-25T02:50:22+09:00 Subject: Re: Importing from YAML On Sep 24, 2006, at 12:04 PM, Toby Rodwell wrote: > Jordan Callicoat wrote: > ... >> >> YAML#load (or its synonym #parse) loads object(s) from a YAML string. >> Have a look at the docs: http://ruby-doc.org/core/classes/YAML.html > > Many thanks Jordan. For anyone interested I've just given it a go and > the reverse of the above code seems to be quite simply > > def LoadMyObject > myObject = YAML.load_file(self.fileName) > end No need to assign to a local variable there, since it goes out of scope as soon as you leave the method on the next line. James Edward Gray II