ruby - How to replace a hash key/value with another key/value
<p>I have a hash </p>

<pre><code>  hash = {"some_wierd_name"=&gt;"cheesemonster", .....}
</code></pre>

<p>and I want this hash as</p>

<pre><code>  hash = {"preferred_name"=&gt;"cheesemonster", ......}
</code></pre>

<p>What is the shortest way to do that?</p>