Skip to content

Commit a4dcf9c

Browse files
committed
IO::Path: document slurp and spurt methods
1 parent 11ebd2b commit a4dcf9c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

doc/Type/IO/Path.pod

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,20 @@ A lazy way to find the first three files ending in ".p6" recursively starting fr
189189
@stack.append(dir($current)>>.path) if $current.IO.d;
190190
}
191191
192-
193192
say $perl-files[1..3];
194193
194+
=head2 routine slurp
195+
196+
multi method slurp(IO::Path:D: :$bin, :$enc);
197+
198+
Return the file content for this path, like L<slurp|/routine/slurp>.
199+
200+
=head2 routine spurt
201+
202+
multi method spurt(IO::Path:D: Blob $contents, :$bin, |c);
203+
multi method spurt(IO::Path:D: Cool $contents, :$bin, |c);
204+
205+
Write C<$contents> to this path, like L<spurt|/routine/spurt>.
195206
196207
=head2 routine chdir
197208

0 commit comments

Comments
 (0)