File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,18 @@ current directory and the "one directory up":
113
113
my @dirs = <. foo .. bar>;
114
114
say @dirs.grep(* eq $*SPEC.curupdir); # OUTPUT: «(foo bar)»
115
115
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
+
116
128
= head2 method tmpdir
117
129
118
130
Defined as:
Original file line number Diff line number Diff line change @@ -93,6 +93,18 @@ that purpose.
93
93
IO::Spec::Win32.catpath('E:', '', 'foo.txt').say;
94
94
# OUTPUT: «E:foo.txt»
95
95
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
+
96
108
= head2 method tmpdir
97
109
98
110
Defined as:
You can’t perform that action at this time.
0 commit comments