projects
/
gitmo/Moo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
119014a
)
make does_role work on objects
Matt S Trout [Mon, 15 Nov 2010 02:55:00 +0000 (
02:55
+0000)]
lib/Role/Tiny.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Role/Tiny.pm
b/lib/Role/Tiny.pm
index
669d0a3
..
ebf9807
100644
(file)
--- a/
lib/Role/Tiny.pm
+++ b/
lib/Role/Tiny.pm
@@
-215,8
+215,8
@@
sub _install_single_modifier {
}
sub does_role {
- my ($package, $role) = @_;
- return exists $APPLIED_TO{$package}{$role};
+ my ($proto, $role) = @_;
+ return exists $APPLIED_TO{ref($proto)||$proto}{$role};
}
1;