7
7
role Metamodel::PrivateMethodContainer { ... }
8
8
9
9
I < Warning > : this role is part of the Rakudo implementation, and is not
10
- a part of the language specification.
10
+ a part of the Raku language specification.
11
11
12
12
In Raku, classes, roles and grammars can have private methods, that is,
13
- methods that are only callable from within the class , and are not inherited by
13
+ methods that are only callable from within it , and are not inherited by
14
14
types derived by inheritance.
15
15
16
16
class A {
@@ -33,35 +33,35 @@ attributes with methods.
33
33
= head2 method add_private_method
34
34
35
35
= for code :skip-test
36
- method add_private_method(Metamodel::PrivateMethodContainer: $obj, $name, $code)
36
+ method add_private_method(Metamodel::PrivateMethodContainer: $obj, $name, $code)
37
37
38
38
Adds a private method C < $code > with name C < $name > .
39
39
40
40
= head2 method private_method_table
41
41
42
42
= for code :skip-test
43
- method private_method_table(Metamodel::PrivateMethodContainer: $obj)
43
+ method private_method_table(Metamodel::PrivateMethodContainer: $obj)
44
44
45
45
Returns a hash of C « name => &method_object »
46
46
47
47
= head2 method private_methods
48
48
49
49
= for code :skip-test
50
- method private_methods($obj)
50
+ method private_methods($obj)
51
51
52
52
Returns a list of private method names.
53
53
54
54
= head2 method private_method_names
55
55
56
56
= for code :skip-test
57
- method private_method_names($obj)
57
+ method private_method_names($obj)
58
58
59
59
Alias to C < private_methods > .
60
60
61
61
= head2 method find_private_method
62
62
63
63
= for code :skip-test
64
- method find_private_method($obj, $name)
64
+ method find_private_method($obj, $name)
65
65
66
66
Locates a private method. Otherwise, returns L < C < Mu > |/type/Mu> if it doesn't
67
67
exist.
0 commit comments