From: "Ara.T.Howard" Date: 2005-06-08T08:24:52+09:00 Subject: Re: Saving YAML data On Wed, 8 Jun 2005, Nigel Wilkinson wrote: > --On Tuesday, June 07, 2005 07:08:17 +0900 ES > wrote: > >> This is what I usually use: >> >> File.open('filename', 'w+b') {|file| YAML.dump my_data, file} >> >> E >> > > Thanks, that seems to do what I want. > > With ref to the other solution for some reason I still get > > irb(main):051:0* require 'yaml' > => false require 'yaml/store' > irb(main):052:0> y = YAML::Store.new( "./yaml.store.1", :Indent => 2, > :Separator => '---.pstore' ) > NameError: uninitialized constant YAML::Store > from (irb):52 > irb(main):053:0> > > But I have a result that works > > Cheers > Nigel > > > -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | My religion is very simple. My religion is kindness. | --Tenzin Gyatso ===============================================================================