The IO routine

Combined from primary sources listed below.

In class IO::Path ( Type/IO/Path )§

See primary docmentation in context for method IO.

method IO§

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

Returns the invocant.

In class IO::CatHandle ( Type/IO/CatHandle )§

See primary docmentation in context for method IO.

method IO§

method IO(IO::CatHandle:D:)

Alias for .path

In class Distribution::Resource ( Type/Distribution/Resource )§

See primary docmentation in context for method IO.

method IO§

method IO()

Returns the corresponding resource as an IO::Path, which can effectively be used as such.

In class IO::Pipe ( Type/IO/Pipe )§

See primary docmentation in context for method IO.

method IO§

method IO(IO::Pipe: --> IO::Path:U)

Returns an IO::Path type object.

In class IO::Notification::Change ( Type/IO/Notification/Change )§

See primary docmentation in context for method IO.

method IO§

Returns a handle of the file that's being watched.

In class Cool ( Type/Cool )§

See primary docmentation in context for method IO.

method IO§

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

Coerces the invocant to IO::Path.

.say for '.'.IO.dir;        # gives a directory listing

In class IO::Special ( Type/IO/Special )§

See primary docmentation in context for method IO.

method IO§

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

Returns the invocant.

say $*IN.path.IO.what;  # OUTPUT: «<STDIN>␤»
say $*IN.path.what;     # OUTPUT: «<STDIN>␤»

In class IO::Handle ( Type/IO/Handle )§

See primary docmentation in context for method IO.

method IO§

method IO(IO::Handle:D:)

Alias for .path

In role Dateish ( Type/Dateish )§

See primary docmentation in context for method IO.

method IO§

method IO(Dateish:D: --> IO::Path:D)

Returns an IO::Path object representing the stringified value of the Dateish object:

Date.today.IO.say;   # OUTPUT: «"2016-10-03".IO␤»
DateTime.now.IO.say# OUTPUT: «"2016-10-03T11:14:47.977994-04:00".IO␤»

PORTABILITY NOTE: some operating systems (e.g. Windows) do not permit colons (:) in filenames, which would be present in IO::Path created from a DateTime object.