From: _why Date: 2008-03-04T02:30:28+09:00 Subject: Re: YAML On Tue, Mar 04, 2008 at 01:30:09AM +0900, aidy wrote: > Hi All (greg) > > I just can't get the code to iterate through both docs. Hi, question: do you have a document separator between each YAML document? It's three dashes. >> docs = < "- Document 1\n---\n- Document 2\n" >> YAML.each_document(docs) { |doc| p doc } ["Document 1"] ["Document 2"] => nil _why