Skip to content

Commit 5e1260b

Browse files
uzluisfJJ
authored andcommitted
Document several metamethods
1 parent 842a581 commit 5e1260b

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

doc/Type/Metamodel/PrivateMethodContainer.pod6

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,23 @@ Adds a private method C<$code> with name C<$name>.
4242
4343
Returns a hash of C«name => &method_object»
4444
45-
=begin comment
45+
=head2 method private_methods
4646
47-
TODO: document find_private_method, once we've figured out how to represent
48-
or catch nqp::null in Raku land
47+
method private_methods($obj)
4948
50-
=end comment
49+
Returns a list of private method names.
50+
51+
=head2 method private_method_names
52+
53+
method private_method_names($obj)
54+
55+
Alias to C<private_methods>.
56+
57+
=head2 method find_private_method
58+
59+
method find_private_method($obj, $name)
60+
61+
Locates a private method. Otherwise, returns L<C<Mu>|/type/Mu> if it doesn't
62+
exist.
5163
5264
=end pod

0 commit comments

Comments
 (0)