Removes the last extension of path.
path
Path('script.rb').without_extension # => #<Path script> Path('archive.tar.gz').without_extension # => #<Path archive.tar>
56 57 58
# File 'lib/epath/parts.rb', line 56 def without_extension Path.new @path[0..-extname.size-1] end