From: Ara.T.Howard@... Date: 2004-10-23T06:14:13+09:00 Subject: Re: YAML bug with : in strings? On Sat, 23 Oct 2004, 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. you can get around this (if it is not a bug) by quoting the string: [nrt@bligh filters]$ ruby -r yaml -e 'p YAML::load(%q(":not_a_symbol").to_yaml).class' String regards. -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | When you do something, you should burn yourself completely, like a good | bonfire, leaving no trace of yourself. --Shunryu Suzuki ===============================================================================