projects
/
gitmo/MooseX-Singleton.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
_clear_instance and tests
[gitmo/MooseX-Singleton.git]
/
lib
/
MooseX
/
Singleton
/
Object.pm
diff --git
a/lib/MooseX/Singleton/Object.pm
b/lib/MooseX/Singleton/Object.pm
index
07c792a
..
312e472
100644
(file)
--- a/
lib/MooseX/Singleton/Object.pm
+++ b/
lib/MooseX/Singleton/Object.pm
@@
-28,6
+28,11
@@
sub new {
return $class->SUPER::new(@args);
}
+sub _clear_instance {
+ my ($class) = @_;
+ $class->meta->clear_singleton;
+}
+
no Moose;
1;