X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FSingleton.pm;h=bde50659ef803c3841af03a4e19a32959de4194c;hb=b1882d9b6ec47b18a97dadb6e1326305d890c806;hp=bc2b7ec1b1ab6077c8460faf07de1cbe687e0c56;hpb=283bf6e6d41ced93a6082f77c3f87addf88da4e7;p=gitmo%2FMooseX-Singleton.git diff --git a/lib/MooseX/Singleton.pm b/lib/MooseX/Singleton.pm index bc2b7ec..bde5065 100644 --- a/lib/MooseX/Singleton.pm +++ b/lib/MooseX/Singleton.pm @@ -1,11 +1,11 @@ package MooseX::Singleton; -use Moose 0.74 (); +use Moose 0.82 (); use Moose::Exporter; use MooseX::Singleton::Object; use MooseX::Singleton::Meta::Class; -our $VERSION = '0.16'; +our $VERSION = '0.19'; $VERSION = eval $VERSION; Moose::Exporter->setup_import_methods( also => 'Moose' ); @@ -31,7 +31,7 @@ MooseX::Singleton - turn your Moose class into a singleton =head1 VERSION -Version 0.16, released 24 May 08 +Version 0.18, released 24 May 08 =head1 SYNOPSIS @@ -60,11 +60,15 @@ All you should need to do to transform your class is to change C to C. This module uses a new class metaclass and instance metaclass, so if you're doing metamagic you may not be able to use this. -C gives your class an C method that can be used to get a handle on the singleton. It's actually just an alias for C. +C gives your class an C method that can be used to +get a handle on the singleton. It's actually just an alias for C. Alternatively, C<< YourPackage->method >> should just work. This includes accessors. +If you need to reset your class's singleton object for some reason (e.g. +tests), you can call C<< YourPackage->_clear_instance >>. + =head1 TODO =over