Subject: | Feature request: Allow roles to apply method modifiers to events |
It would be very useful if events were methods that could be modified
by roles, eg:
package TestRole;
use MooseX::POE::Role;
before testevent => sub {
print "Foo!";
};
no MooseX::POE::Role;
package TestObject;
use MooseX::POE;
with 'TestRole';
event testevent => sub {
print "Bar!";
};
no MooseX::POE;
TestObject->new();
POE::Kernel->run();