in reply to Re^8: a State machine with Roles - possible? (class or instance)
in thread a State machine with Roles - possible?
apply_all_roles($applicant, @roles)This function applies one or more roles to the given $applicant The applicant can be a role name, class name, or object.
The $applicant must already have a metaclass object.
The list of @roles should a list of names or Moose::Meta::Role objects, each of which can be followed by an optional hash reference of options (-excludes and -alias).
but couldn't find a description for metaclass either, I suppose a package container for roles.
Just for a better understanding, where in your code did you assure that the $applicant already has a metaclass object?
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: a State machine with Roles - possible? (class or instance)
by mascip (Pilgrim) on Jun 01, 2013 at 10:15 UTC | |
by LanX (Saint) on Jun 01, 2013 at 10:36 UTC | |
by mascip (Pilgrim) on Jun 01, 2013 at 11:13 UTC |