class String
This is free software released into the public domain (CC0 license).
Public Instance Methods
as_path()
click to toggle source
Generates a path from a String
.
`ā/a/b/cā.as_path` is equivalent to `Filepath.new(ā/a/b/cā)`.
@example Filepath
from a string
"/etc/ssl/certs".as_path #=> </etc/ssl/certs>
@return [Filepath] a new path generated from the string
@note FIXME: `#as_path` should be `#to_path` but that method name
is already used
# File lib/filepath/core_ext/string.rb, line 18 def as_path Filepath.new(self) end