title: Ruby: Match keys in a hash to return respective key+value
body: <p>I have hash which is</p>
  
  <pre><code>hash = {"stars"=&gt;"in the galaxy", "fin"=&gt;"is for fish", "fish"=&gt;"has fins"}
  </code></pre>
  
  <p>Now I have a find method</p>
  
  <pre><code>def find(value)
      if hash.empty? == true
        return {}
      else
       return  hash
      end
    end
  </code></pre>
  
  <p>Now i want to do is- when executed <code>find("fi")</code> , I want the method to return all the hash key+ value which contain <code>fi</code> in the key. So an output such that would look like -</p>
  
  <pre><code>{"fin"=&gt;"is for fish", "fish"=&gt;"has fins"}
  </code></pre>
  
  <p>Please note "fi" is not fixed. It can be anything. Since Find method accepts an argument <code>value</code>.</p>
  
  <p>Any help or suggestion is appreciate. I tried hash#select. but wasnt so helpful. I am not really sure what to use here.</p>