Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document type Metamodel::RoleContainer
  • Loading branch information
moritz committed Jan 1, 2015
1 parent 83da0d1 commit 7e51211
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions lib/Type/Metamodel/RoleContainer.pod
@@ -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

0 comments on commit 7e51211

Please sign in to comment.