title: How to pass &:key as an argument to map instead of a block with ruby?
body: <p>I wrote this code:</p>
  
  <pre><code>my.objects.map { |object| object.key }
  </code></pre>
  
  <p>My rubocop said:</p>
  
  <pre><code>Pass &amp;:key as an argument to map instead of a block.
  </code></pre>
  
  <p>Is there a short way to do the same thing?</p>