Skip to content

Commit

Permalink
Document IO::Path.add(<bar baz>)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Mar 7, 2023
1 parent a327de2 commit 03a7c1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/Type/IO/Path.rakudoc
Expand Up @@ -144,6 +144,13 @@ L<parent|/routine/parent>.
"foo/bar".IO.add("../meow") .resolve.relative.say; # OUTPUT: «foo/meow␤»
"foo/bar".IO.add("../../") .resolve.relative.say; # OUTPUT: «.␤»

method add(IO::Path:D: *@parts --> IO::Path:D)

As of release 2021.07 of the Rakudo compiler, it is also possible to
specify multiple parts to be added to a path.

"foo".IO.add(<bar baz>).resolve.relative.say; # OUTPUT: «foo/bar/baz␤»

=head2 method child

method child(IO::Path:D: Str() $childname --> IO::Path:D)
Expand Down

0 comments on commit 03a7c1d

Please sign in to comment.