Hi,

On 6/7/05, Nigel Wilkinson <nigel / waspz.co.uk> wrote:
> --On Tuesday, June 07, 2005 07:08:17 +0900 ES <ruby-ml / magical-cat.org>
> 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
> 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>

Try "require 'yaml/store'", and it should work. The YAML::Store
functionality is defined in a separate place, and isn't required with
just "require 'yaml'".

HTH,
Mark