|
NAMEData::Object::StateABSTRACTSingleton Builder for Perl 5SYNOPSISpackage Example; use Data::Object::State; has data => ( is => 'ro' ); package main; my $example = Example->new; DESCRIPTIONThis package provides an abstract base class for creating singleton classes. This package is derived from Moo and makes consumers Moo classes (with all that that entails). This package also injects a "BUILD" method which is responsible for hooking into the build process and returning the appropriate state.METHODSThis package implements the following methods:newrenew() : Object The new method sets the internal state and returns a new class instance. Subsequent calls to "new" will return the same instance as was previously returned.
renewrenew() : Object The renew method resets the internal state and returns a new class instance. Each call to "renew" will discard the previous state, then reconstruct and stash the new state as requested.
AUTHORAl Newkirk, "awncorp@cpan.org"LICENSECopyright (C) 2011-2019, Al Newkirk, et al.This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file" <https://github.com/iamalnewkirk/data-object-state/blob/master/LICENSE>. PROJECTWiki <https://github.com/iamalnewkirk/data-object-state/wiki>Project <https://github.com/iamalnewkirk/data-object-state> Initiatives <https://github.com/iamalnewkirk/data-object-state/projects> Milestones <https://github.com/iamalnewkirk/data-object-state/milestones> Contributing <https://github.com/iamalnewkirk/data-object-state/blob/master/CONTRIBUTE.md> Issues <https://github.com/iamalnewkirk/data-object-state/issues>
Visit the GSP FreeBSD Man Page Interface. |