title: How to turn a Ruby method into a block?
body: <p>Is there a way to simplify the following code?</p>
  
  <p>filenames is a list of filenames (strings), e.g. ["foo.txt", "bar.c", "baz.yaml"]</p>
  
  <pre><code>filenames.map { |f| File.size(f) }
  </code></pre>
  
  <p>Is there any way to turn "File.size" into a proc or block?  For methods on existing objects, I can do <code>&amp;:method</code>.  Is there something analogous for module level methods?</p>