title: Change Hash to array of arrays in ruby
body: <p>Let's say i have a hash</p>
  
  <pre><code> {:facebook=&gt;0.0, :twitter=&gt;10.0, :linkedin=&gt;6.0, :youtube=&gt;8.0}
  </code></pre>
  
  <p>Now i want it to change to an array like </p>
  
  <pre><code>[[Facebook,0.0],[Twitter,10.0],[Linkedin,6.0],[Youtube,8.0]]
  </code></pre>
  
  <p>I can use a logic to extract and change it in to array, but i was just wondering if there could be any defined methods in ruby which i can use to implement the above.</p>