title: Removing underscore character from each entry in a list of paths
body: <p>There is an array of strings</p>
  
  <pre>
      paths = ['foo/bar_baz/_sunny', bar/foo_baz/_warm', 'foo/baz/_cold', etc etc]
  </pre>
  
  <p>I need to remove underscore in each last part of path (_sunny => sunny, _warm => warm, _cold => cold)</p>
  
  <pre>
      paths.each do |path|
          path_parts = path.split('/')
          path_parts.last.sub!(/^_/, '')
          puts path_parts.join('/')
      end
  </pre>
  
  <p>However that solution is a bit dirty. I feel it can be done without using path.split and path.join. Do you have any ideas?</p>
  
  <p>Thanks in advance</p>