method add_parent
1 | class Metamodel::EnumHOW |
1.1 | (Metamodel::EnumHOW) method add_parent |
2 | role Metamodel::MultipleInheritance |
2.1 | (Metamodel::MultipleInheritance) method add_parent |
Documentation for method add_parent
assembled from the following types:
class Metamodel::EnumHOW
From Metamodel::EnumHOW
(Metamodel::EnumHOW) method add_parent
method add_parent(, )
Sets the base type of an enum. This can only be used if no base type was passed to .new_type
.
role Metamodel::MultipleInheritance
From Metamodel::MultipleInheritance
(Metamodel::MultipleInheritance) method add_parent
method add_parent(Metamodel::MultipleInheritance: , , :)
Adds $parent
as a parent type. If $hides
is set to a true value, the parent type is added as a hidden parent.
$parent
must be a fully composed typed. Otherwise an exception of type X::Inheritance::NotComposed is thrown.