From: Toby Rodwell Date: 2006-09-25T02:12:34+09:00 Subject: Re: Importing from YAML Oops, that should be 'loadMyObject' of course ... 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 -- Posted via http://www.ruby-forum.com/.