From: Joel VanderWerf Date: 2004-10-23T06:19:49+09:00 Subject: Re: YAML bug with : in strings? Guillaume Marcais wrote: > $ irb > irb(main):001:0> require 'yaml' > => true > irb(main):002:0> YAML::load(":not_a_symbol".to_yaml).class > => Symbol > > The original object was a string starting with ':', not a symbol. > > Guillaume. What version? I get String: $ ruby -v -r yaml -e 'p YAML::load(":not_a_symbol".to_yaml).class' ruby 1.9.0 (2004-10-17) [i686-linux] String The string has been escaped by #to_yaml $ ruby -r yaml -e 'puts ":not_a_symbol".to_yaml' --- ":not_a_symbol"