base name with extension stripped : basename « File Directory « Ruby






base name with extension stripped


full = '/home/matz/bin/ruby.exe'
File.basename(full, '.exe')  # => 'ruby': with extension stripped

 

Related examples in the same category

1.just the local filename