Method: String#to_pathname

Defined in:
lib/pleasant_path/string.rb

#to_pathnamePathname Also known as: path

Constructs a Pathname from the String.

Examples:

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

Returns:



9
10
11
# File 'lib/pleasant_path/string.rb', line 9

def to_pathname
  Pathname.new(self)
end