K
Keith Carter
Sorry for all the YAML questions today!
Here is my YAML file-
foo:
this is a test
to see if ruby
recognizes line breaks
Here is my Ruby-
Loading development environment (Rails 2.0.2)
=> nil
Where'd the line breaks go?
Here is my YAML file-
foo:
this is a test
to see if ruby
recognizes line breaks
Here is my Ruby-
Loading development environment (Rails 2.0.2)
this is a test to see if ruby recognizes line breaksrequire 'yaml' => []
test = YAML::load_file("test.yml") => {"foo"=>"this is a test to see if ruby recognizes line breaks"}
puts test['foo']
=> nil
Where'd the line breaks go?