title: Assistance with Some Interesting Syntax in Some Ruby Code I've Found
body: <p>I'm currently reading Agile Web Development With Rails, 3rd edition.  On page 672, I came across this method:</p>
  
  <pre><code>def capitalize_words(string)
    string.gsub(/\b\w/) { $&amp;.upcase }
  end
  </code></pre>
  
  <p>What is the code in the block doing?  I have never seen that syntax.  Is it similar to the <code>array.map(&amp;:some_method)</code> syntax? </p>