We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3555ea commit ac2175aCopy full SHA for ac2175a
doc/Type/IO/Path.pod
@@ -102,8 +102,11 @@ Returns the full path as a string.
102
103
method Str(IO::Path:D:)
104
105
-Returns the full path as a string. If the path object was constructed from a
106
-single string, the method Str will return that string.
+Returns the complete text that was used to create the path as a string, whether
+it was given as a single string or as named arguments.
107
+
108
+ say IO::Path.new(basename => "foo", dirname => "/bar").Str # /bar/foo
109
+ say IO::Path.new("/bar/foo").Str # /bar/foo
110
111
=head2 method open
112
0 commit comments