projects
/
gitmo/MooseX-Types.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add can_be_inlined method to undefined type
[gitmo/MooseX-Types.git]
/
lib
/
MooseX
/
Types
/
UndefinedType.pm
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.