[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Controlling YAML dump format

gga

3/11/2005 7:42:00 AM

I was wondering if Ruby's YAML format offered some control on the
preferred YAML dump format syntax. I cannot find much on it.

For example, arrays in YAML can be spit out as either:

actions: [ ONE, TWO ]

instead of ruby's yaml format of:

actions:
- ONE
- TWO

Ruby's YAML will read both syntaxes, but dump() seems to only know
about one.