From: Keith Carter Date: 2008-01-29T07:39:21+09:00 Subject: Re: Line breaks in YAML Thomas Wieczorek wrote: > Not sure if that's what you meant. No, that's not quite it. Really, what I'd like, is to be able to put multi-line Ruby code snippets into a yml file. For example, my yml file- source_id: a=2 b=2 if (a==b) c=3 end And my ruby- Loading development environment (Rails 2.0.2) >> require 'yaml' => [] >> test = YAML::load_file("test.yml") => {"source"=>"a=2 b=2 if (a==b) c=3 end"} >> eval(test['source']) SyntaxError: (eval):1:in `irb_binding': compile error (eval):1: syntax error, unexpected tIDENTIFIER, expecting $end a=2 b=2 if (a==b) c=3 end ^ from (irb):3 from (irb):3 >> -- Posted via http://www.ruby-forum.com/.