title: Ruby delete specific value from hash and replace with another value
body: <p>Is there a clear way to loop through the hash below and replace the specific value(s) with the value(s) in the 'Fills' array?</p>
  <pre><code>codes = ['AA', 'BB']
  fills = ['FOUR', 'FIVE']
  </code></pre>
  <p>This empty hash gets populated by an 'each do' statement where is picks out the info from 'main_hash' based on the keys in the 'codes' array.</p>
  <pre><code>hash = {}
  
  main_hash = {'AA' =&gt; ['1', 'TEXT', 'ONE'],
               'BB' =&gt; ['2', 'TEXT', 'TWO'],
               'CC' =&gt; ['3', 'TEXT', 'THREE']}
  </code></pre>
  <p>Ouput:
  I want to replace the specific value in the new 'hash' so the output looks like below:</p>
  <pre><code>hash = {'AA' =&gt; ['1', 'TEXT', 'FOUR'],
          'BB' =&gt; ['2', 'TEXT', 'FIVE']}
  </code></pre>