class File

Public Class Methods

basename_we(path) click to toggle source
# File lib/benchcc/ext/file.rb, line 13
def self.basename_we(path)
  File.basename(File.remove_ext(path))
end
remove_ext(path) click to toggle source
# File lib/benchcc/ext/file.rb, line 5
def self.remove_ext(path)
  path.chomp(extname(path))
end
sub_ext(path, ext) click to toggle source
# File lib/benchcc/ext/file.rb, line 9
def self.sub_ext(path, ext)
  Pathname.new(path).sub_ext(ext).to_path
end