Ruby, array of hashes convert to 2d arrays : <p>I have an array of hashes.</p>

<pre><code>arr =[{:code=&gt;"404", :demo =&gt; "1"}, {:code=&gt;"302", :demo =&gt; "1"}, {:code=&gt;"200", :demo =&gt; "1"}]
</code></pre>

<p>I would like to convert this to:</p>

<pre><code>[["404", "1"], ["302", "1"], ["200", "1"]]
</code></pre>

<p>I tried: </p>

<pre><code>arr.each do |a|
 puts a.values
end
</code></pre>

<p>But this create only 1 array as;</p>

<pre><code>["404", "1", "302", "1", "200", "1"]
</code></pre>
