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