projects
/
gitmo/MooseX-Types.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f5559e1
)
Add can_be_inlined method to undefined type
Dave Rolsky [Sun, 5 Jun 2011 15:25:07 +0000 (10:25 -0500)]
lib/MooseX/Types/UndefinedType.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/Types/UndefinedType.pm
b/lib/MooseX/Types/UndefinedType.pm
index
8f0b2e3
..
e719ec8
100644
(file)
--- a/
lib/MooseX/Types/UndefinedType.pm
+++ b/
lib/MooseX/Types/UndefinedType.pm
@@
-49,6
+49,14
@@
sub name {
return $_[0]->{name};
}
+=head2 can_be_inlined
+
+Always returns false. Needed for compatbility with Moose 2.0100+.
+
+=cut
+
+sub can_be_inlined { 0 }
+
=head2 __autovivify
Try to see if the type constraint has yet been defined and if so create it.