Skip to content

Commit 69d473f

Browse files
committed
[io grant] Document IO::Spec::*.devnull
1 parent e1281f2 commit 69d473f

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

doc/Type/IO/Spec/Unix.pod6

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,18 @@ current directory and the "one directory up":
113113
my @dirs = <. foo .. bar>;
114114
say @dirs.grep(* eq $*SPEC.curupdir); # OUTPUT: «(foo bar)␤»
115115
116+
=head2 method devnull
117+
118+
Defined as:
119+
120+
method devnull(--> Str:D)
121+
122+
Returns the string C<"/dev/null"> representing the
123+
L<"Null device"|https://en.wikipedia.org/wiki/Null_device>:
124+
125+
=for code :skip-test
126+
$*SPEC.devnull.IO.spurt: "blah blah";
127+
116128
=head2 method tmpdir
117129
118130
Defined as:

doc/Type/IO/Spec/Win32.pod6

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ that purpose.
9393
IO::Spec::Win32.catpath('E:', '', 'foo.txt').say;
9494
# OUTPUT: «E:foo.txt␤»
9595
96+
=head2 method devnull
97+
98+
Defined as:
99+
100+
method devnull(--> Str:D)
101+
102+
Returns the string C<"nul"> representing the
103+
L<"Null device"|https://en.wikipedia.org/wiki/Null_device>:
104+
105+
=for code :skip-test
106+
$*SPEC.devnull.IO.spurt: "blah blah";
107+
96108
=head2 method tmpdir
97109
98110
Defined as:

0 commit comments

Comments
 (0)