Re: Store and Transactions

Zenaan Harkness <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
On Sat, Jun 28, 2008 at 04:49:51PM -0400, Andrew Brown wrote:
> 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?

I use java, and that doesn't look like java, but you might create the
YAML file you are expecting, and then try to load that, and inspect the
object loaded.

Then you can save the object loaded, and see what the resulting yaml
file looks like.

May give you an idea of what you need to do...

zen

-- 
Homepage: www.SoulSound.net -- Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.

-------------------------------------------------------------------------
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.