=begin pod

=TITLE class IO::Special

=SUBTITLE Path to Special I/O device

=for code :skip-test
class IO::Special does IO { }

Used as a L«C<$.path>|/type/IO::Handle#method_path>» attribute in special
standard input and output handles C<$*IN>, C<$*OUT> and C<$*ERR>. Provides
abridged interface of L«C<IO::Handle>|/type/IO::Handle», mostly file tests
and stringification.

=head1 Methods

=head2 method new

=for code :skip-test
method new(:$!what!)

Takes a single required attribute C<what>. It is unlikely that you will ever
need to construct one of these objects yourself.

=head2 attribute what

    say $*OUT.path.what; # OUTPUT: «<STDOUT>␤»

Returns one of the strings C«'<STDIN>'», C«'<STDOUT>'», or C«'<STDERR>'»,
specifying the type of the special IO device.

=head2 method WHICH

    method WHICH(IO::Special:D: --> Str)

This returns a string that identifies the object.

=head2 method Str

    method Str(IO::Special:D:)

This returns C«'<STDIN>'», C«'<STDOUT>'», or C«'<STDERR>'» as appropriate.

=head2 method IO

    method IO(IO::Special:D: --> IO::Special)

Returns the invocant.

=head2 method e

    method e(IO::Special:D: --> Bool)

The 'exists' file test operator, always returns C<True>.

=head2 method d

    method d(IO::Special:D: --> Bool)

The 'directory' file test operator, always returns C<False>.

=head2 method f

    method f(IO::Special:D: --> Bool)

The 'file' file test operator, always returns C<False>.

=head2 method s

    method s(IO::Special:D: --> Int)

The 'size' file test operator, always returns C<0>.

=head2 method l

    method l(IO::Special:D: --> Bool)

The 'symbolic links' file test operator, always returns C<False>.

=head2 method r

    method r(IO::Special:D: --> Bool)

The 'read access' file test operator, returns C<True> if this is
the standard input handle, C<False> otherwise.

=head2 method w

    method w(IO::Special:D: --> Bool)

The 'write access' file test operator, returns C<True> if this is
the standard output or standard error handle, C<False> if it is
the standard input.

=head2 method x

    method x(IO::Special:D: --> Bool)

The 'execute access' file test operator, always returns C<False>.

=head2 method modified

    method modified(IO::Special:D: --> Instant)

The last modified time always returns an L«C<Instant>|/type/Instant» type
object.

=head2 method accessed

    method accessed(IO::Special:D: --> Instant)

The last accessed time always returns an L«C<Instant>|/type/Instant» type
object.

=head2 method changed

    method changed(IO::Special:D: --> Instant)

The last changed time always returns an L«C<Instant>|/type/Instant» type
object.

=head2 method mode

    method mode(IO::Special:D: --> Nil)

The mode always returns L<Nil>

=end pod
