Method: String#path

Defined in:
lib/pleasant_path/string.rb

#pathPathname

Constructs a Pathname from the String. Alias of #to_pathname.

Examples:

"path/to/file".to_pathname  # == Pathname.new("path/to/file")

Returns:



16
17
18
# File 'lib/pleasant_path/string.rb', line 16

def to_pathname
  Pathname.new(self)
end