title: Skip key from hash loop
body: <p>I am performing an operation on hash values, lets say :</p>
  
  <pre><code>hash = { a: true, b: false, c: nil }
  </code></pre>
  
  <p>I am executing an <code>each</code> loop on <code>hash</code> but I want to skip keys <code>b</code> and <code>c</code>. I don't want to delete these from <code>hash</code>.</p>
  
  <p>I have tried:</p>
  
  <pre><code>hash = { a: true, b: false, c: nil}
  hash.except(:c)
  { a: true, b: false, c: nil}
  </code></pre>
  
  <p>But it is not working. I am using <code>ruby 2.4.2</code></p>