generate_mixin
ErrorsCollection

generate_mixin

Synthesised documentation from type/Metamodel/Mixins

From type/Metamodel/Mixins

See Original text in context

method generate_mixin($obj@roles)

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.