Controlling YAML dump format

Discussion in 'Ruby' started by gga, Mar 11, 2005.

  1. gga

    gga Guest

    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.
     
    gga, Mar 11, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. halfdog
    Replies:
    12
    Views:
    12,462
  2. Replies:
    0
    Views:
    509
  3. Paul Battley

    YAML.dump/YAML.load bug

    Paul Battley, Aug 3, 2005, in forum: Ruby
    Replies:
    0
    Views:
    181
    Paul Battley
    Aug 3, 2005
  4. Jonathan Gold
    Replies:
    0
    Views:
    141
    Jonathan Gold
    May 19, 2009
  5. Wesley
    Replies:
    1
    Views:
    138
    Wesley
    Apr 15, 2014
Loading...

Share This Page