projects
/
gitmo/MooseX-Singleton.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
ecb520c
)
Add _expected_method_class for compat with latest CMOP
Dave Rolsky [Fri, 24 Apr 2009 15:05:02 +0000 (10:05 -0500)]
lib/MooseX/Singleton/Meta/Method/Constructor.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/Singleton/Meta/Method/Constructor.pm
b/lib/MooseX/Singleton/Meta/Method/Constructor.pm
index
b24db58
..
f1dadde
100644
(file)
--- a/
lib/MooseX/Singleton/Meta/Method/Constructor.pm
+++ b/
lib/MooseX/Singleton/Meta/Method/Constructor.pm
@@
-56,6
+56,12
@@
sub _initialize_body {
$self->{'body'} = $code;
}
+# For CMOP 0.82_01+
+sub _expected_method_class {
+ return 'MooseX::Singleton::Object';
+}
+
+# For older versions of Moose/CMOP
sub _expected_constructor_class {
return 'MooseX::Singleton::Object';
}