Why not adopt me?
NAME
Package::Strictures::Registry - Data Storage name-space for stricture parameters.
VERSION
version 1.000001
METHODS
advertise_value
Package::Strictures::Registry->advertise_value( 'Some::Package', "STRICT");
An informational data-storage for developers to see what packages that are loaded have strictures that are able to be tuned, without having to grok the source.
Note that by the time you see this value, it is already too late to try setting it.
has_value
Package::Strictures::Registry->has_value( 'Some::Package', 'STRICT' )
Sees if somebody ( A developer ) has defined an override value for the stricture.
This will be picked up by a performing package when somebody first use/require's it.
get_value
Package::Strictures::Registry->get_value('Some::Package' , 'STRICT' )
Returns the value stored earlier if there was one.
This is done internally by Package::Strictures::Register
to populate the values for the compile-time constants.
set_value
Package::Strictures::Registry->set_value('Some::Package', 'STRICT' , 1 );
Sets a default value override for Some::Package
to pick up when it compiles.
Note: This MUST be performed prior to compile-time, or it won't affect the module AT ALL
AUTHOR
Kent Fredric <kentnl@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.