Method: Hoodie::FileHelper#normalize_path
- Defined in:
- lib/hoodie/utils/file_helper.rb
#normalize_path(path) ⇒ String
Normalize a path to not include a leading slash
221 222 223 |
# File 'lib/hoodie/utils/file_helper.rb', line 221 def normalize_path(path) path.sub(%r{^/}, '').tr('', '') end |