method IO

Documentation for method IO assembled from the following types:

class Cool

From Cool

(Cool) method IO

Defined as:

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

Coerces the invocant to IO::Path.

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

role Dateish

From Dateish

(Dateish) method IO

Defined as:

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

Returns an IO::Path object representing the stringified value of the Dateish object:;   # OUTPUT: «"2016-10-03".IO␤» 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.

class IO::CatHandle

From IO::CatHandle

(IO::CatHandle) method IO

Defined as:

method IO(IO::CatHandle:D:)

Alias for .path

class IO::Pipe

From IO::Pipe

(IO::Pipe) method IO

Defined as:

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

Returns an IO::Path type object.

class IO::Special

From IO::Special

(IO::Special) 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>␤»

class IO::Path

From IO::Path

(IO::Path) method IO

Defined as:

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

Returns the invocant.

class IO::Handle

From IO::Handle

(IO::Handle) method IO

Defined as:

method IO(IO::Handle:D:)

Alias for .path