Broken YAML.dump with YAML::Object (Missing String#each)

Discussion in 'Ruby' started by Jonathan Gold, May 19, 2009.

  1. I feel like I've discovered a bug in YAML.dump when used with
    yaml-tagged objects (YAML::Object). It seems that the YAML libs are
    still expecting to use String#each, but that's gone. To repro:

    ruby -ryaml -e 'anon_obj_yaml = "---
    !ruby/object:No::Such::Class"; anon_obj = YAML.load( anon_obj_yaml );
    YAML.dump( anon_obj )'

    Is this a bug?

    jon
     
    Jonathan Gold, May 19, 2009
    #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,598
  2. Paul Battley

    YAML.dump/YAML.load bug

    Paul Battley, Aug 3, 2005, in forum: Ruby
    Replies:
    0
    Views:
    209
    Paul Battley
    Aug 3, 2005
  3. Fransiscus Xaverius

    YAML Problem YAML::Object

    Fransiscus Xaverius, Dec 14, 2007, in forum: Ruby
    Replies:
    2
    Views:
    170
    Fransiscus Xaverius
    Dec 14, 2007
  4. Rud1ger Sch1erz
    Replies:
    1
    Views:
    272
  5. David Gravereaux

    window.dump() broken?

    David Gravereaux, Feb 22, 2006, in forum: Javascript
    Replies:
    7
    Views:
    88
    Jonas Raoni
    Feb 22, 2006
Loading...

Share This Page