Skip to content

Commit 25bce38

Browse files
committed
[io grant] Document IO::Path.succ
1 parent 5e58d95 commit 25bce38

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/Type/IO/Path.pod6

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,18 @@ L«C<$.CWD> attribute|type/IO::Path#attribute_CWD». To stringify while
301301
retaining full path information use L«C<.absolute>|/routine/absolute» or
302302
L«C<.relative>|/routine/relative» methods.
303303
304+
=head2 method succ
305+
306+
Defined as:
307+
308+
method succ(IO::Path:D: --> IO::Path:D)
309+
310+
Returns a new L<IO::Path> constructed from the invocant, with
311+
L«C<.basename>|/routine/basename» changed by calling
312+
L«C<Str.succ>|/type/Str#method_succ» on it.
313+
314+
"foo/file02.txt".IO.succ.say; # OUTPUT: «"foo/file03.txt".IO␤»
315+
304316
=head2 method open
305317
306318
Defined as:

0 commit comments

Comments
 (0)