From: Maciej Tomaka Date: 2008-08-07T23:20:35+09:00 Subject: Re: hash from string Mage wrote: > Tim Pease wrote: >> with more time than me. > Won't even work if any of the values contains a comma. > > Mage Why don't you use YAML? >> { :qwe => "asd"}.to_yaml => "--- \n:qwe: asd\n" >> YAML.load(({ :qwe => "asd"}.to_yaml)) => {:qwe=>"asd"} It works for most of things. -- Posted via http://www.ruby-forum.com/.