_clear_instance and tests
[gitmo/MooseX-Singleton.git] / lib / MooseX / Singleton / Object.pm
index 07c792a..312e472 100644 (file)
@@ -28,6 +28,11 @@ sub new {
   return $class->SUPER::new(@args);
 }
 
+sub _clear_instance {
+  my ($class) = @_;
+  $class->meta->clear_singleton;
+}
+
 no Moose;
 
 1;