Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs to method print-nl in class IO::Handle
  • Loading branch information
Jan-Olof Hendig committed May 30, 2016
1 parent c7294bb commit 318a5d8
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions doc/Type/IO/Handle.pod
Expand Up @@ -29,7 +29,7 @@ and the stream may be buffered.
=head2 method eof
Returns L<Bool::True> if the read operations have exhausted the content of the file.
Returns C<True> if the read operations have exhausted the content of the file.
=head2 method lines
Expand Down Expand Up @@ -82,6 +82,19 @@ to write bytes.
$fh.print("some text\n");
$fh.close;
=head2 method print-nl
method print-nl(IO::Handle:D: --> True)
Writes a newline to the filehandle. The newline marker defaults
to C<\n> unless another marker has been specified in the call to
L<open>.
my $fh = open 'path/to/file', :w, nl-out => "\r\n";
$fh.print("some text");
$fh.print-nl; # \r\n
$fh.close;
=head2 method read
method read(IO::Handle:D: Int(Cool:D) $bytes --> Blob)
Expand Down Expand Up @@ -182,13 +195,13 @@ argument such as C<fcntl> or C<ioctl>.
method opened(IO::Handle:D: --> Bool)
Returns L<Bool::True> if the handle is open.
Returns C<True> if the handle is open.
=head2 method t
method t(IO::Handle:D: --> Bool)
Returns L<Bool::True> if the handle is opened to a tty.
Returns C<True> if the handle is opened to a tty.
=head1 Related roles and classes
Expand Down

0 comments on commit 318a5d8

Please sign in to comment.