The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Object::State

ABSTRACT

Data-Object Singleton Declaration

SYNOPSIS

  package Registry;

  use Data::Object State;

  extends 'Environment';

DESCRIPTION

Data::Object::State modifies the consuming package makes it a singleton class.

METHODS

This package implements the following methods.

renew

  RENEW(Any @args) : Object

The RENEW method resets the state and returns a new singleton.

RENEW example
  my $RENEW = $self->RENEW(@args);