Method: When::Parts::Resource._simplify_path
- Defined in:
- lib/when_exe/parts/resource.rb
._simplify_path(path) ⇒ Object
407 408 409 410 411 412 413 |
# File 'lib/when_exe/parts/resource.rb', line 407 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 |