File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
= SUBTITLE Input/output related routines
6
6
7
- Please note that coercion via L < Cool.IO|/type/Cool#method_IO > leads to
8
- L < IO::Path|/type/IO::Path > . This is the exception from the rule.
7
+ The role provides no methods, but exists so that C < IO() > coercers, which coerce
8
+ to L < IO::Path > , correctly type-check the resultant value. The role is done
9
+ by L < IO::Path > and L < IO::Special > .
9
10
10
11
= head1 Routines
11
12
Original file line number Diff line number Diff line change 4
4
5
5
= SUBTITLE Opened file or stream
6
6
7
- class IO::Handle does IO { }
7
+ class IO::Handle { }
8
8
9
9
= head1 Methods
10
10
Original file line number Diff line number Diff line change 4
4
5
5
= SUBTITLE Network socket
6
6
7
- role IO::Socket does IO { ... }
7
+ role IO::Socket { ... }
8
8
9
9
C < IO::Socket > contains read and write methods for sockets. It is usually used
10
10
through L < IO::Socket::INET > .
Original file line number Diff line number Diff line change 4
4
5
5
= SUBTITLE Path to Special I/O device
6
6
7
+ = for code :skip-test
8
+ class IO::Special does IO { }
9
+
7
10
Used as a L « C < $.path > |/type/IO::Handle#method_path>» attribute in special
8
11
standard input and output handles C < $*IN > , C < $*OUT > and C < $*ERR > . Provides
9
12
abridged interface of L « C < IO::Handle > |/type/IO::Handle» , mostly file tests
You can’t perform that action at this time.
0 commit comments