Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add documentation for the new IO.mode method
This requires Rakudo PR #773, which implements RT #125489
  • Loading branch information
MasterDuke17 committed Jun 8, 2016
1 parent 995ac3b commit 4436247
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/Type/IO/Path.pod
Expand Up @@ -510,6 +510,13 @@ or more readably:
my $change_time = DateTime.new($chnge_instant);
say $change_time; # e.g. 2015-02-16T12:18:50Z
=head2 method mode
Return an L<IntStr> object representing the POSIX permissions of a file.
say ~"path/to/file".IO.mode; # e.g. '0644'
say +"path/to/file".IO.mode; # e.g. 420, where sprintf('%04o', 420) eq '0644'
=head1 Related roles and classes
See also the related role L<IO> and the related class L<IO::Handle>.
Expand Down
6 changes: 6 additions & 0 deletions doc/Type/IO/Special.pod
Expand Up @@ -111,4 +111,10 @@ The last accessed time always returns an undefined L<Instant>
The last changed time always returns an undefined L<Instant>
=head2 method mode
method mode(IO::Special:D:) returns Nil
The mode always returns L<Nil>
=end pod

0 comments on commit 4436247

Please sign in to comment.