From: Rob Biedenharn Date: 2008-12-20T12:35:24+09:00 Subject: Re: YAML troubles On Dec 19, 2008, at 10:08 PM, Tim Mcd wrote: > Einar Magnús Boson wrote: >> On 20.12.2008, at 02:52 , Tim Mcd wrote: >> >>> Now when I try 'a = YAML::load(File.open('names.yaml'))', a only >>> returns >>> the first character set of data: >> >> I don't have an answer to your question but when I needed YAML I >> found >> that it didn't read it exactly as I expected so I made the objects I >> wanted to get inside ruby and had it dump the objects to YAML, then I >> got the right syntax. Try that. >> >> einarmagnus > > I had been doing that, but ruby still doesn't read it up from the YAML > correctly. Maybe I'll make my own parsing engine for that kind of > stuff... (*starts formulating all kind of wacked out, super groovy, > super cool ideas that will never come to be...*) Just use the right method: YAML.each_document YAML.load_documents details from your friendly neighborhood `ri` -Rob Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com