projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
6681e09
)
Need to unimport Mouse::Role's keywords
Shawn M Moore [Tue, 17 Jun 2008 04:16:25 +0000 (
04:16
+0000)]
lib/Mouse/Role.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Role.pm
b/lib/Mouse/Role.pm
index
3b455de
..
57f319d
100644
(file)
--- a/
lib/Mouse/Role.pm
+++ b/
lib/Mouse/Role.pm
@@
-72,6
+72,13
@@
do {
}
sub unimport {
+ my $caller = caller;
+
+ no strict 'refs';
+ for my $keyword (keys %exports) {
+ next if $keyword eq 'meta'; # we don't delete this one
+ delete ${ $caller . '::' }{$keyword};
+ }
}
};