title: ruby yaml ypath like xpath?
body: <p>Hi i have a yaml file like so</p>
  
  <pre><code>---
  data:
    - date: "2004-06-11"
      description: First description
  
    - date: "2008-01-12"
      description: Another descripion
  </code></pre>
  
  <p>How can i do a "ypath" query similar to xpath for xml ? Something like "get the description where the date is 2004-06-11"</p>
  
  <pre><code>YAML.parse_file('myfile.yml').select('/data/*/date == 2004-06-11')
  </code></pre>
  
  <p>How do you do it, and if that's possible how can i similarly edit the description by 'ypath' ?</p>
  
  <p>Thanks</p>