method generate_mixin
1 | role Metamodel::Mixins |
1.1 | (Metamodel::Mixins) method generate_mixin |
Documentation for method generate_mixin
assembled from the following types:
role Metamodel::Mixins
From Metamodel::Mixins
(Metamodel::Mixins) method generate_mixin
method generate_mixin(, )
Creates a new mixin metaobject that inherits from $obj
and does each of the roles in @roles
. This is then composed and has its mixin attribute set (if any exists) before getting returned.
While this generates a new mixin type, this doesn't actually mix it into $obj
; if that is what you intend to do, use the mixin metamethod instead.