Howdy, Perl Monks!
I'm trying to implement roles in our extensive codebase using Role::Tiny, but it's not behaving as expected. CPAN clearly states: "If a method is already defined on a class, that method will not be composed in from the role.". However in my current code it is clear that the method in the role is being used.
My code works as follows (package naming simplified for clarity):
I can only assume that something arcane is happening with the combination of standard inheritance and roles, but I can't put my finger on it...
In reply to Role::Tiny not behaving as expected by webmistress_ming
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |