Store and Transactions

Andrew Brown <andrew-E0AgM5MnDtRTRdfda3Ib+wC/[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
I have prepared a hash called people that is ready to be saved as a
yaml file.
The docs are bit shabby on how to just add a hash but I figured it was
something like this:

y = YAML::Store.new( "people.yml", :indent => 2 )
y.transaction { y[] = people) }

When I check the people.yml I get ---{}
How do I get this to work?


Monsterbox Productions
putting small businesses on-line

Andrew Brown
web-developer

andrew-E0AgM5MnDtRTRdfda3Ib+wC/[email protected]





-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.