module BatchKit::FileExtensions::ClassMethods
Public Instance Methods
nameonly(path)
click to toggle source
Return just the name (without any extension) of a path.
# File lib/batch-kit/core_ext/file.rb, line 8 def nameonly(path) File.basename(path, File.extname(path)) end