MooseX::Singleton::Role::Meta::Method::Constructor - Constructor method role for MooseX::Singleton
This role overrides the generated object new method so that it returns the singleton if it already exists.
new
To install MooseX::Singleton, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Singleton
CPAN shell
perl -MCPAN -e shell install MooseX::Singleton
For more information on module installation, please visit the detailed CPAN module installation guide.