projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
af638a4
)
The Object type constraint filters out Regexp
Shawn M Moore [Thu, 25 Jun 2009 04:13:38 +0000 (
00:13
-0400)]
lib/Moose/Util/TypeConstraints.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Util/TypeConstraints.pm
b/lib/Moose/Util/TypeConstraints.pm
index
d9a1dd3
..
9ad9c2e
100644
(file)
--- a/
lib/Moose/Util/TypeConstraints.pm
+++ b/
lib/Moose/Util/TypeConstraints.pm
@@
-372,7
+372,6
@@
sub duck_type {
sub {
my $obj = $_;
my $class = blessed($obj) || return;
- return if $class eq 'Regexp';
return 0 unless all { $obj->can($_) } @methods;
return 1;
},