/
Unix.pod6
40 lines (25 loc) · 1.1 KB
/
Unix.pod6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
=begin pod :kind("Type") :subkind("class") :category("domain-specific")
=TITLE class IO::Path::Unix
=SUBTITLE IO::Path pre-loaded with IO::Spec::Unix
class IO::Path::Unix is IO::Path { }
This sub-class of L«C<IO::Path>|/type/IO::Path», pre-loaded with
L«C<IO::Spec::Unix>|/type/IO::Spec::Unix» in the C<$.SPEC> attribute.
=head1 Methods
=head2 method new
Same as L«C<IO::Path.new>|/type/IO::Path#method_new», except
C<:$SPEC> cannot be set and defaults to
L«C<IO::Spec::Unix>|/type/IO::Spec::Unix», regardless of the operating system
the code is being run on.
=head2 method raku
Defined as:
method raku(IO::Path::Unix:D: --> Str:D)
Returns a string that, when given passed through L«C<EVAL>|/routine/EVAL»
gives the original invocant back.
=for code :ok-test<raku>
IO::Path::Unix.new("foo/bar").raku.say;
# OUTPUT: IO::Path::Unix.new("foo/bar", :CWD("/home/camelia"))
Note that this string includes the value of the C<.CWD> attribute that is set
to L«C<$*CWD>|/language/variables#Dynamic_variables» when the path
object was created, by default.
=end pod
# vim: expandtab shiftwidth=4 ft=perl6