title: How to get filename without extension from file path in Ruby
body: <p>How can I get the filename from a file path in Ruby?</p>
  
  <p>For example if I have a path of <code>"C:\projects\blah.dll"</code> and I just want the "blah".</p>
  
  <p>Is there a <code>LastIndexOf</code> method in Ruby?</p>