projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Make code simple
[gitmo/Mouse.git]
/
lib
/
Mouse
/
PurePerl.pm
diff --git
a/lib/Mouse/PurePerl.pm
b/lib/Mouse/PurePerl.pm
index
5b32267
..
432d4c7
100644
(file)
--- a/
lib/Mouse/PurePerl.pm
+++ b/
lib/Mouse/PurePerl.pm
@@
-628,6
+628,13
@@
sub _process_options{
package Mouse::Meta::TypeConstraint;
+use overload
+ '""' => '_as_string',
+ '0=' => '_identity',
+ '|' => '_unite',
+
+ fallback => 1;
+
sub name { $_[0]->{name} }
sub parent { $_[0]->{parent} }
sub message { $_[0]->{message} }