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
Adds stub for ConcreRoleHOW, although there's not much of it
- 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::ConcreteRoleHOW | ||
| =SUBTITLE Provides an implementation of a concrete instance of a role | ||
| class Metamodel::ConcreteRoleHOW | ||
| does Metamodel::Naming | ||
| does Metamodel::Versioning | ||
| does Metamodel::PrivateMethodContainer | ||
| does Metamodel::MethodContainer | ||
| does Metamodel::MultiMethodContainer | ||
| does Metamodel::AttributeContainer | ||
| does Metamodel::RoleContainer | ||
| does Metamodel::MultipleInheritance | ||
| does Metamodel::ArrayType | ||
| does Metamodel::Concretization {} | ||
| You can use this to build roles, in the same way that C<ClassHOW> can be used to | ||
| build classes: | ||
| =for code | ||
| my $a = Metamodel::ConcreteRoleHOW.new_type(name => "Bar"); | ||
| $a.^compose; | ||
| say $a.^roles; # OUTPUT: «(Mu)» | ||
| The main difference with | ||
| L<C<ClassHOW.new_type>|/type/Metamodel::ClassHOW#method_new_type> is that you | ||
| can mix-in roles in this newly created one. | ||
| This class is Rakudo specific, and provided only for completeness. Not really | ||
| intended to be used by the final user. | ||
| =end pod |