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);