Project

General

Profile

Backport #991

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

=begin 
  
  >>{"--- foo" => "bar"}.to_yaml 
  => "--- \n--- foo: bar\n" 
 
  >> YAML.load _ 
  => nil 
 
  (the --- needs to be put in quotes so it's not interpreted as the start of a new yaml, i.e. 
  "--- \n\"--- foo\": bar\n") 
 
 
  I also required the yaml.rb in 1.9.1 preview1; it seems to be a problem there too. 
 
 =end 
 

Back