projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Test that before/after/around live, and defining a sub within a role
[gitmo/Mouse.git]
/
lib
/
Mouse
/
Role.pm
diff --git
a/lib/Mouse/Role.pm
b/lib/Mouse/Role.pm
index
ddd435a
..
89a44c7
100644
(file)
--- a/
lib/Mouse/Role.pm
+++ b/
lib/Mouse/Role.pm
@@
-15,6
+15,15
@@
do {
confess "Role does not currently support 'extends'";
}
},
+ before => sub {
+ return sub { }
+ },
+ after => sub {
+ return sub { }
+ },
+ around => sub {
+ return sub { }
+ },
);
my $exporter = Sub::Exporter::build_exporter({