[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>

> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;

12 messages 2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — nobu.nokada@... 2003/05/29

Hi,

YAML problem

From: Tanaka Akira <akr@...17n.org>
Date: 2003-05-22 04:37:47 UTC
List: ruby-core #1066
I found a problem with yaml.

% ruby -ryaml -e 'YAML.load({"A"=>"A,","B"=>"B"}.to_yaml)'
/home/akr/ruby/lib/ruby/1.8/yaml.rb:28:in `load': parse error on line 0, col 8: `A: A, (LoadError)
B: B'   from /home/akr/ruby/lib/ruby/1.8/yaml.rb:28:in `load'
        from -e:1

It seems that yaml hates last comma in hash value.

% ruby -ryaml -e 'puts({"A"=>"A,","B"=>"B"}.to_yaml)'
A: A,
B: B
-- 
Tanaka Akira

In This Thread

Prev Next