title: Why can't I parse YAML with Ruby?
body: <p>This is my Ruby code:</p>
  
  <pre><code>require 'yaml'
  yaml = YAML.parse(
    '''
    foo: "hello, world"
    '''
  )
  puts yaml['foo']
  </code></pre>
  
  <p>I'm getting:</p>
  
  <pre><code>NoMethodError: undefined method `[]' for #&lt;Psych::Nodes::Document:0x007f92a4404d98&gt;
  </code></pre>
  
  <p>It's Ruby 2.1.3</p>