Metaobject that supports private methods
Warning: this role is part of the Rakudo implementation, and is not a part of the Raku language specification.
In Raku, classes, roles and grammars can have private methods, that is, methods that are only callable from within it, and are not inherited by types derived by inheritance.
For the purposes of dispatching and scoping, private methods are closer to subroutines than to methods. However they share access to
self and attributes with methods.
method add_private_method(, , )
Adds a private method
$code with name
Returns a hash of
name => &method_object
Returns a list of private method names.
method find_private_method(, )
Locates a private method. Otherwise, returns
Mu if it doesn't exist.