Module: BatchKit::FileExtensions::ClassMethods

Defined in:
lib/batch-kit/core_ext/file.rb

Instance Method Summary collapse

Instance Method Details

#nameonly(path) ⇒ Object

Return just the name (without any extension) of a path.



8
9
10
# File 'lib/batch-kit/core_ext/file.rb', line 8

def nameonly(path)
    File.basename(path, File.extname(path))
end