Generates a path from a String.
FIXME: #as_path should be #to_path but that method name is already used
#as_path
#to_path
"/a/b/c".as_path is equivalent to Filepath.new("/a/b/c").
"/a/b/c".as_path
Filepath.new("/a/b/c")
Examples:
Filepath from a string
"/etc/ssl/certs".as_path #=> </etc/ssl/certs>
Returns:
a new path generated from the string
18 19 20
# File 'lib/filepath/core_ext/string.rb', line 18 def as_path Filepath.new(self) end