Skip to content

Commit

Permalink
[io grant] Expand IO::Path.relative
Browse files Browse the repository at this point in the history
- include info on what happens if the path is already relative
  • Loading branch information
zoffixznet committed Mar 24, 2017
1 parent ccae74a commit 3cf943d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/Type/IO/Path.pod6
Expand Up @@ -151,9 +151,12 @@ created with if it is not.
=head2 method relative
method relative(IO::Path:D: $base = ~$*CWD --> Str)
method relative(IO::Path:D: $base = $*CWD --> Str)
Returns a new C<Str> object relative to the C<$base> path.
Returns a new C<Str> object with the path relative to the C<$base>. If C<$base>
is not provided, C<$*CWD> is used in its place. If the invocant is not
an absolute path, it's first made to be absolute using the C<.CWD>
attribute the object was created with, and then is made relative to C<$base>.
=head2 method parent
Expand Down

0 comments on commit 3cf943d

Please sign in to comment.