Method: When::Parts::Resource._simplify_path
- Defined in:
- lib/when_exe/parts/resource.rb
._simplify_path(path) ⇒ Object
324 325 326 327 328 329 330 |
# File 'lib/when_exe/parts/resource.rb', line 324 def _simplify_path(path) _prefix_values.each do |value| index = path.index(value) return _prefix_index[value] + ':' + path[value.length..-1] if index end return path end |