Skip to content

Commit

Permalink
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
JJ committed Apr 12, 2019
1 parent daee46f commit 21b8280
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions doc/Type/Metamodel/ConcreteRoleHOW.pod6
@@ -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

0 comments on commit 21b8280

Please sign in to comment.