Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Eliminates TODO refs #2277
  • Loading branch information
JJ committed Aug 26, 2018
1 parent 396b8fc commit 8cfb6db
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions doc/Type/Submethod.pod6
Expand Up @@ -7,14 +7,15 @@
class Submethod is Routine {}
A Submethod is a method that is not inherited by child classes. They are
typically used for per-class initialization and tear-down tasks which are
called explicitly per class in an inheritance tree, usually for enforcing a
particular order. For example object construction with the C<BUILD> submethod
happens from the least-derived to most-derived, so that the most-derived
(child) classes can depend on the parent already being initialized.
typically used for per-class initialization and tear-down tasks which
are called explicitly per class in an inheritance tree, usually for
enforcing a particular order. For example object construction with the
C<BUILD> submethod happens from the least-derived to most-derived, so
that the most-derived (child) classes can depend on the parent already
being initialized.
Submethods are of type C<Submethod>, and are declared with the C<submethod>
declarator:
Submethods are of type C<Submethod>, and are declared with the
C<submethod> declarator:
class Area {
has $.size;
Expand All @@ -25,7 +26,13 @@ declarator:
=head1 Methods
=comment TODO
=head2 method gist
Defined as:
multi method gist(Submethod:D:)
Returns the name of the submethod.
=end pod

Expand Down

0 comments on commit 8cfb6db

Please sign in to comment.