NAME
Bolts::Scope::Singleton - For artifacts that are reused for the lifetime of the bag
VERSION
version 0.143170
DESCRIPTION
This scope does not define a true singleton, but a singleton for the lifetime of the bag it is associated with, which might be the same thing.
ROLES
METHODS
get
If the named artifact has ever been stored for this bag, it will be returned by this method.
put
Puts the named artifact into the singleton cache for the bag. Once there, it will stay there for as long as the object exists.
AUTHOR
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.