Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document IO::Handle.slurp-rest
  • Loading branch information
jonathanstowe committed Jul 27, 2015
1 parent 63fb6eb commit e7c25b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Type/IO/Handle.pod
Expand Up @@ -94,6 +94,14 @@ Return the current position of the file pointer in bytes.
=head2 method slurp-rest
multi method slurp-rest(IO::Handle:D: :$bin! --> Buf)
multi method slurp-rest(IO::Handle:D: :$enc --> Str)
Return the remaining content of the file from the current file position
(which may have been set by previous reads or by C<seek>.) If the
adverb C<:bin> is provided a L<Buf|/lib/Type/Buf> will be returned,
otherwise the return will be a C<Str> with the optional encoding C<:enc>.
=head2 method close
Will close a previously opened filehandle.
Expand Down

0 comments on commit e7c25b1

Please sign in to comment.