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 d02ae7d commit ccae74aCopy full SHA for ccae74a
doc/Type/IO/Path.pod6
@@ -141,9 +141,13 @@ Returns C<True> if the path is a relative path, and C<False> otherwise.
141
142
=head2 method absolute
143
144
- method absolute(IO::Path:D: $base = ~$*CWD --> Str)
+ multi method absolute(IO::Path:D: --> Str)
145
+ multi method absolute(IO::Path:D: $base --> Str)
146
-Returns a new C<Str> object that is an absolute path, based on C<$base>.
147
+Returns a new C<Str> object that is an absolute path. If the invocant
148
+is not already an absolute path, it is first made absolute using C<$base>
149
+as base, if it is provided, or the C<.CWD> attribute the object was
150
+created with if it is not.
151
152
=head2 method relative
153
0 commit comments