N
Nigel Wilkinson
Hi
I've just started playing with YAML but am having problems saveing the
file. What I can work out from the docs is that I should use something
like:-
require 'yaml'
y = YAML.Store.new( "./yaml.store.1", :Indent => 2, :Separator =>
'---.pstore' )
however when I do this in irb I get
irb(main):001:0> require 'yaml'
=> true
irb(main):002:0> y = YAML.Store.new( "./yaml.store.1", :Indent => 2,
:Separator => '---.pstore' )
NoMethodError: undefined method `Store' for YAML:Module
from (irb):2
irb(main):003:0>
Anyone know what I'm doing wrong.
Cheers
Nigel
I've just started playing with YAML but am having problems saveing the
file. What I can work out from the docs is that I should use something
like:-
require 'yaml'
y = YAML.Store.new( "./yaml.store.1", :Indent => 2, :Separator =>
'---.pstore' )
however when I do this in irb I get
irb(main):001:0> require 'yaml'
=> true
irb(main):002:0> y = YAML.Store.new( "./yaml.store.1", :Indent => 2,
:Separator => '---.pstore' )
NoMethodError: undefined method `Store' for YAML:Module
from (irb):2
irb(main):003:0>
Anyone know what I'm doing wrong.
Cheers
Nigel