title: Question on Ruby collect method
body: <p>I have an array of hashes</p>
  
  <p>Eg:</p>
  
  <pre><code>cars = [{:company =&gt; "Ford", :type =&gt; "SUV"},
          {:company =&gt; "Honda", :type =&gt; "Sedan"},
          {:company =&gt; "Toyota", :type =&gt; "Sedan"}]
  
  # i want to fetch all the companies of the cars
  cars.collect{|c| c[:company]}
  # =&gt; ["Ford", "Honda", "Toyota"] 
  
  # i'm lazy and i want to do something like this
  cars.collect(&amp;:company)
  # =&gt; undefined method `company' 
  </code></pre>
  
  <p>I was wondering if there is a similar shortcut to perform the above.</p>