Documentation for method IO
assembled from the following pages:
Class: Distribution::Resource §
(Distribution::Resource) method IO §
Defined as:
method IO()
Returns the corresponding resource as an IO::Path
, which can effectively be used as such.
Role: Dateish §
From Dateish
(Dateish) method IO §
Defined as:
method IO(Dateish: --> IO::Path)
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.
Class: IO::CatHandle §
From IO::CatHandle
(IO::CatHandle) method IO §
Defined as:
method IO(IO::CatHandle:)
Alias for .path
Class: IO::Handle §
From IO::Handle
(IO::Handle) method IO §
Defined as:
method IO(IO::Handle:)
Alias for .path
Class: IO::Notification::Change §
(IO::Notification::Change) method IO §
Returns a handle of the file that's being watched.
Class: IO::Path §
From IO::Path
(IO::Path) method IO §
Defined as:
method IO(IO::Path: --> IO::Path)
Returns the invocant.
Class: IO::Pipe §
From IO::Pipe
(IO::Pipe) method IO §
Defined as:
method IO(IO::Pipe: --> IO::Path)
Returns an IO::Path type object.
Class: IO::Special §
From IO::Special
(IO::Special) method IO §
method IO(IO::Special: --> IO::Special)
Returns the invocant.
say .path.IO.what; # OUTPUT: «<STDIN>» say .path.what; # OUTPUT: «<STDIN>»
Class: Cool §
From Cool
(Cool) method IO §
Defined as:
method IO(--> IO::Path)
Coerces the invocant to IO::Path.
.say for '.'.IO.dir; # gives a directory listing