X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FSingleton.pm;h=cc87157fe54c079ef7e85a94f19d8c693a0d8f03;hb=refs%2Ftags%2F0.18;hp=c81d4803ef81637409d502657e36950fadadbc90;hpb=060d6e6b284deb1c3e800877409f41aed8c56ec7;p=gitmo%2FMooseX-Singleton.git diff --git a/lib/MooseX/Singleton.pm b/lib/MooseX/Singleton.pm index c81d480..cc87157 100644 --- a/lib/MooseX/Singleton.pm +++ b/lib/MooseX/Singleton.pm @@ -1,11 +1,11 @@ package MooseX::Singleton; -use Moose (); +use Moose 0.82 (); use Moose::Exporter; use MooseX::Singleton::Object; use MooseX::Singleton::Meta::Class; -our $VERSION = '0.13'; +our $VERSION = '0.18'; $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.08, 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 @@ -102,7 +106,7 @@ Ricardo SIGNES Erjbs@cpan.orgE =head1 COPYRIGHT AND LICENSE -Copyright 2007, 2008 Shawn M Moore. +Copyright 2007, 2008 Infinity Interactive This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.