Class: Egnyte::Helper
- Inherits:
-
Object
- Object
- Egnyte::Helper
- Defined in:
- lib/egnyte/helper.rb
Class Method Summary collapse
-
.normalize_path(path) ⇒ Object
removes leading and trailing ‘/’ from folder and file names.
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 |