Module: RevealCK::Misc::RemoveExtension

Defined in:
lib/reveal-ck/misc/remove_extension.rb

Overview

Knows how to remove an extension from a filename

Instance Method Summary collapse

Instance Method Details

#remove_extension(file_name) ⇒ Object



5
6
7
# File 'lib/reveal-ck/misc/remove_extension.rb', line 5

def remove_extension(file_name)
  file_name.sub(%r{\.[^/]*\z}, '')
end