File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -281,13 +281,15 @@ the empty string.
281
281
282
282
Defined as:
283
283
284
- method parts(IO::Path:D: --> Hash )
284
+ method parts(IO::Path:D: --> Map:D )
285
285
286
- Returns a hash with the keys C < dirname > , C < path > and C < volume > , and as
287
- values the return values of the methods with the same names.
286
+ Returns a L < Map > with the keys C < volume > , C < dirname > , C < basename > whose values
287
+ are the same as available via methods L « C < .volume > |/routine/volume» ,
288
+ L « C < .dirname > |/routine/dirname» , and L « C < .basename > |/routine/basename»
289
+ respectively.
288
290
289
- say IO::Path.new("/etc/passwd ").parts.perl;
290
- # OUTPUT: «{ :basename("passwd "), :directory("/etc"), : dirname("/etc "), :volume("")} »
291
+ say IO::Path::Win32 .new("C:/rakudo/perl6.bat ").parts.perl;
292
+ # OUTPUT: «Map.new(( :basename("perl6.bat "),: dirname("/rakudo "),:volume("C:"))) »
291
293
292
294
= head method gist
293
295
You can’t perform that action at this time.
0 commit comments