p5-MooseX-Singleton

turn your Moose class into a singleton

WWW CVSWeb GITHub
  1. Package version
    p5-MooseX-Singleton-0.30
  2. Maintainer
    The OpenBSD ports mailing-list

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 use MooseX::Singleton. This module uses metaclass roles to do its
magic, so it should cooperate with most other MooseX modules.

  • devel/p5-Module-Build-Tiny

  • STEM->=1.10:devel/p5-Moose