title: Ruby: Most idiomatic way to modify an array of hashes?
body: <p>I'm working with an unsorted array of hashes, where the order of the hashes within the array is not important. Each hash has an <code>:id</code> primary key, which is used to find it within the array. The design of this system is outside of my control.</p>
  
  <p>I must design a read-modify-write system for:</p>
  
  <ol>
  <li><p>Looking up the hash (by :id) within the array.</p></li>
  <li><p>Performing modifications to other keys within the hash.</p></li>
  <li><p>Saving this hash back to the array.</p></li>
  </ol>
  
  <p>Now, it's not hard at all to do this and get it working. But what is the <em>Ruby</em> answer?</p>
  
  <p>Thanks!</p>