Class: Egnyte::Helper

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

Class Method Summary collapse

Class Method Details

.normalize_path(path) ⇒ Object

removes leading and trailing ‘/’ from folder and file names.



5
6
7
# File 'lib/egnyte/helper.rb', line 5

def self.normalize_path(path)
  path.gsub(/(^\/)|(\/$)/, '')
end