title: Select hashes that meet list of requirements
body: <p>I want to select hashes from an array that meet a list of criteria. Since I'm new to Ruby I have no idea what I am doing :) Yes I tried google..</p>
  <pre><code>@dogs = [
    {
      id: 0,
      name: &quot;Rover&quot;,
      breed: &quot;Siba&quot;,
      age: 5
    },
    {
      id: 1,
      name: &quot;Barky&quot;,
      breed: &quot;Lab&quot;,
      age: 12
    },
    {
      id: 2,
      name: &quot;Buster&quot;,
      breed: &quot;Hound&quot;,
      age: 1
    }
  ]
  
  dogs.select { |dog| dog[:age] &gt; 1 &amp;&amp; (dog[:breed] = &quot;Shiba&quot; || dog[:breed] = &quot;Hound&quot;) }
  </code></pre>