Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Document type Metamodel::RoleContainer
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| =begin pod | ||
| =TITLE role Metamodel::RoleContainer | ||
| =SUBTITLE Metaomdel role that implements the ability to hold/contain roles | ||
| role Metamodel::RoleContainer { ... } | ||
| Implements the ability to hold roles to be held for composition. | ||
| class A does SomeRole { ... } | ||
| roughly corresponds to | ||
| class A { | ||
| BEGIN A.^add_role(SomeRole); | ||
| } | ||
| =head1 Methods | ||
| =head2 method add_role | ||
| method add_role(Metamodel::RoleContainer:D: $obj, Mu $role) | ||
| Adds the C<$role> to the list of roles to be composed. | ||
| =head2 method roles_to_compose | ||
| method add_role(Metamodel::RoleContainer:D: $obj) returns List:D | ||
| returns a list of roles added with C<add_role>, which are to be composed | ||
| at type composition time. | ||
| =end pod |