Method: String#as_path
- Defined in:
- lib/filepath/core_ext/string.rb
#as_path ⇒ Filepath
Note:
FIXME: #as_path should be #to_path but that method name
is already used
Generates a path from a String.
"/a/b/c".as_path is equivalent to Filepath.new("/a/b/c").
18 19 20 |
# File 'lib/filepath/core_ext/string.rb', line 18 def as_path Filepath.new(self) end |