The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Search results for "dist:MooseX-Singleton class::singleton"

MooseX::Singleton::Role::Meta::Class - Metaclass role for MooseX::Singleton River stage two • 29 direct dependents • 50 total dependents

This metaclass role makes sure that there is only ever one instance of an object for a singleton class. The first call to "construct_instance" is run normally (and then cached). Subsequent calls will return the cached version....

ETHER/MooseX-Singleton-0.30 - 23 Nov 2016 04:47:31 UTC

MooseX::Singleton - Turn your Moose class into a singleton River stage two • 29 direct dependents • 50 total dependents

A singleton is a class that has only one instance in an application. "MooseX::Singleton" lets you easily upgrade (or downgrade, as it were) your Moose class to a singleton. All you should need to do to transform your class is to change "use Moose" to...

ETHER/MooseX-Singleton-0.30 - 23 Nov 2016 04:47:31 UTC

MooseX::Singleton::Role::Object - Object class role for MooseX::Singleton River stage two • 29 direct dependents • 50 total dependents

This just adds "instance" as a shortcut for "new"....

ETHER/MooseX-Singleton-0.30 - 23 Nov 2016 04:47:31 UTC

MooseX::Singleton::Role::Meta::Instance - Instance metaclass role for MooseX::Singleton River stage two • 29 direct dependents • 50 total dependents

This role overrides all object access so that it gets the appropriate singleton instance for the class....

ETHER/MooseX-Singleton-0.30 - 23 Nov 2016 04:47:31 UTC
4 results (0.033 seconds)