in reply to SOLVED [ create_class_with_roles() ]: Moo[se] namespace weirdness with conditionally composed-in Roles
So you're wanting to have the role have the same name but be from different classes?
You want one role to override another?
update: https://metacpan.org/pod/distribution/Moose/lib/Moose/Manual/Roles.pod#METHOD-EXCLUSION-AND-ALIASING
with 'Breakable' => { -alias => { break => 'break_bone' } }, 'Breakdancer' => { -alias => { break => 'break_dance' } };
Now does Moo/Moo::Role or Role::Tiny support alias for with?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moo[se] namespace weirdness with conditionally composed-in Roles (two roles with the same name, with alias)
by 1nickt (Canon) on Mar 21, 2016 at 08:25 UTC | |
|
Re^2: Moo[se] namespace weirdness with conditionally composed-in Roles (two roles with the same name, with alias)
by Anonymous Monk on Mar 21, 2016 at 07:49 UTC | |
by 1nickt (Canon) on Mar 21, 2016 at 08:23 UTC |