balachandran has asked for the wisdom of the Perl Monks concerning the following question:
By default, all hosts are always configurable. So, the class is "with 'Configurable'". But at run time, when need arises, the user can setpackage Host; use Moose; with 'Configurable'; has 'configurable' => ) 'is' => 'rw', 'isa' => 'Bool' ); stuff...
and that should remove the 'Configurable' role. So, is there something similar to Moose::Util::apply_all_roles() to remove specified roles ? Thanks$host->configurable(0);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Remove a role from a Moose object
by kevbot (Vicar) on Nov 07, 2016 at 04:47 UTC | |
by balachandran (Novice) on Nov 07, 2016 at 06:20 UTC | |
by Corion (Patriarch) on Nov 07, 2016 at 08:46 UTC | |
by balachandran (Novice) on Nov 07, 2016 at 18:05 UTC | |
by RonW (Parson) on Nov 11, 2016 at 18:36 UTC | |
Re: Remove a role from a Moose object
by Monk::Thomas (Friar) on Nov 07, 2016 at 15:24 UTC | |
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 |