Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/squeeze_box.rb

Class Method Summary collapse

Class Method Details

.extensionless_path(path) ⇒ Object



338
339
340
341
342
# File 'lib/squeeze_box.rb', line 338

def self.extensionless_path(path)
  dirname = File.dirname(path)
  extensionless_basename = File.basename(path).sub(/\.[^.]+$/,'')
  File.join(dirname, extensionless_basename)
end