title: How to get Ruby to retrieve specific data from a YAML file?
body: <p>First off, I am still a novice Ruby user so this is probably a trivial question but I'm still struggling regardless.
  So I have a YAML file set up like so:</p>
  
  <pre><code>userA:
      {
          nick: cat ,
          fruit: apple ,
          canDance: true ,
          age: 20
      }
  
  userB:
      {
          nick: dog ,
          fruit: orange ,
          canDance: false ,
          age: 23
      }
  </code></pre>
  
  <p>Assuming that the YAML file has been loaded into Ruby, how would I be able to retrieve specific parts of this file, such as retrieving userA's fruit, or userB's canDance? Thanks in advance.</p>