Constructs a Pathname from the String.
"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