File tree Expand file tree Collapse file tree 5 files changed +80
-0
lines changed Expand file tree Collapse file tree 5 files changed +80
-0
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,22 @@ respectively.
291
291
say IO::Path::Win32.new("C:/rakudo/perl6.bat").parts.perl;
292
292
# OUTPUT: «Map.new((:basename("perl6.bat"),:dirname("/rakudo"),:volume("C:")))»
293
293
294
+ = head2 method perl
295
+
296
+ Defined as:
297
+
298
+ method perl(IO::Path:D: --> Str:D)
299
+
300
+ Returns a string that, when given passed through L « C < EVAL > |/routine/EVAL»
301
+ gives the original invocant back.
302
+
303
+ "foo/bar".IO.perl.say;
304
+ # OUTPUT: IO::Path.new("foo/bar", :SPEC(IO::Spec::Unix), :CWD("/home/camelia"))
305
+
306
+ Note that this string includes the value of the C < .CWD > attribute that is set
307
+ to L « C < $*CWD > |/language/variables#index-entry-%24%2ACWD» when the path
308
+ object was created, by default.
309
+
294
310
= head2 method gist
295
311
296
312
Defined as:
Original file line number Diff line number Diff line change @@ -18,6 +18,22 @@ C<:$SPEC> cannot be set and defaults to
18
18
L « C < IO::Spec::Cygwin > |/type/IO::Spec::Cygwin» , regardless of the operating
19
19
system the code is being run on.
20
20
21
+ = head2 method perl
22
+
23
+ Defined as:
24
+
25
+ method perl(IO::Path::Cygwin:D: --> Str:D)
26
+
27
+ Returns a string that, when given passed through L « C < EVAL > |/routine/EVAL»
28
+ gives the original invocant back.
29
+
30
+ IO::Path::Cygwin.new("foo/bar").perl.say;
31
+ # OUTPUT: IO::Path::Cygwin.new("foo/bar", :CWD("/home/camelia"))
32
+
33
+ Note that this string includes the value of the C < .CWD > attribute that is set
34
+ to L « C < $*CWD > |/language/variables#index-entry-%24%2ACWD» when the path
35
+ object was created, by default.
36
+
21
37
= end pod
22
38
23
39
# vim: expandtab shiftwidth=4 ft=perl6
Original file line number Diff line number Diff line change @@ -18,6 +18,22 @@ C<:$SPEC> cannot be set and defaults to
18
18
L « C < IO::Spec::QNX > |/type/IO::Spec::QNX» , regardless of the operating system
19
19
the code is being run on.
20
20
21
+ = head2 method perl
22
+
23
+ Defined as:
24
+
25
+ method perl(IO::Path::QNX:D: --> Str:D)
26
+
27
+ Returns a string that, when given passed through L « C < EVAL > |/routine/EVAL»
28
+ gives the original invocant back.
29
+
30
+ IO::Path::QNX.new("foo/bar").perl.say;
31
+ # OUTPUT: IO::Path::QNX.new("foo/bar", :CWD("/home/camelia"))
32
+
33
+ Note that this string includes the value of the C < .CWD > attribute that is set
34
+ to L « C < $*CWD > |/language/variables#index-entry-%24%2ACWD» when the path
35
+ object was created, by default.
36
+
21
37
= end pod
22
38
23
39
# vim: expandtab shiftwidth=4 ft=perl6
Original file line number Diff line number Diff line change @@ -18,6 +18,22 @@ C<:$SPEC> cannot be set and defaults to
18
18
L « C < IO::Spec::Unix > |/type/IO::Spec::Unix» , regardless of the operating system
19
19
the code is being run on.
20
20
21
+ = head2 method perl
22
+
23
+ Defined as:
24
+
25
+ method perl(IO::Path::Unix:D: --> Str:D)
26
+
27
+ Returns a string that, when given passed through L « C < EVAL > |/routine/EVAL»
28
+ gives the original invocant back.
29
+
30
+ IO::Path::Unix.new("foo/bar").perl.say;
31
+ # OUTPUT: IO::Path::Unix.new("foo/bar", :CWD("/home/camelia"))
32
+
33
+ Note that this string includes the value of the C < .CWD > attribute that is set
34
+ to L « C < $*CWD > |/language/variables#index-entry-%24%2ACWD» when the path
35
+ object was created, by default.
36
+
21
37
= end pod
22
38
23
39
# vim: expandtab shiftwidth=4 ft=perl6
Original file line number Diff line number Diff line change @@ -18,6 +18,22 @@ C<:$SPEC> cannot be set and defaults to
18
18
L « C < IO::Spec::Win32 > |/type/IO::Spec::Win32» , regardless of the operating system
19
19
the code is being run on.
20
20
21
+ = head2 method perl
22
+
23
+ Defined as:
24
+
25
+ method perl(IO::Path::Win32:D: --> Str:D)
26
+
27
+ Returns a string that, when given passed through L « C < EVAL > |/routine/EVAL»
28
+ gives the original invocant back.
29
+
30
+ IO::Path::Win32.new("foo/bar").perl.say;
31
+ # OUTPUT: IO::Path::Win32.new("foo/bar", :CWD("C:\\Users\\camelia"))
32
+
33
+ Note that this string includes the value of the C < .CWD > attribute that is set
34
+ to L « C < $*CWD > |/language/variables#index-entry-%24%2ACWD» when the path
35
+ object was created, by default.
36
+
21
37
= end pod
22
38
23
39
# vim: expandtab shiftwidth=4 ft=perl6
You can’t perform that action at this time.
0 commit comments