in reply to Remove a role from a Moose object
(I'm trying to understand what you are actually going to do with an object instance that dynamically modifies its interface.)
Can you provide more detail on how you are using the role 'Configurable'? I do not understand why it would be necessary or appropriate to add/remove a role on a specific object instance.
a) Are you using "$host->has_role('Configurable')" as a flag to determine whether $host is readonly or writeable?
b) Does 'Configurable' provide the setters and you remove the role to hide them in order to prevent write access?
c) ???
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Remove a role from a Moose object
by balachandran (Novice) on Nov 07, 2016 at 18:01 UTC | |
by Monk::Thomas (Friar) on Nov 08, 2016 at 13:29 UTC | |
by balachandran (Novice) on Nov 08, 2016 at 15:08 UTC |