Module: Relevance::CoreExtensions::File

Included in:
File
Defined in:
lib/relevance/core_extensions/file.rb

Instance Method Summary collapse

Instance Method Details

#extension(path) ⇒ Object



2
3
4
# File 'lib/relevance/core_extensions/file.rb', line 2

def extension(path)
  extname(path)[1..-1]
end