title: Best way to extract last segment of URI in Ruby
body: <p>Given URI strings like:</p>
  
  <pre><code>http://www.somesite.com/abc
  http://www.somesite.com/alpha/beta/abc
  http://www.somesite.com/alpha/abc
  </code></pre>
  
  <p>What's the most elegant way in Ruby to grab the <code>abc</code> at the end of these URIs?</p>