Method: Array#as_path
- Defined in:
- lib/filepath/core_ext/array.rb
#as_path ⇒ Filepath
Note:
FIXME: #as_path should be #to_path but that method name
is already used
Generates a path using the elements of an array as path segments.
[a, b, c].as_path is equivalent to Filepath.join(a, b, c).
24 25 26 |
# File 'lib/filepath/core_ext/array.rb', line 24 def as_path Filepath.join(self) end |