Class::Usul::Types - Defines type constraints
use Class::Usul::Types q(:all);
Defines the following type constraints;
ConfigProvider
Subtype of Object can be coerced from a hash reference
DataEncoding
Subtype of Str which has to be one of the list of encodings in the ENCODINGS constant
DataLumper
Duck type that can; data_load and data_dump. Load and dump, lump
data_load
data_dump
DateTimeRef
Coerces a DateTime object from a string
Localiser
Duck type that can; localize
localize
Locker
Duck type that can; reset and set
reset
set
Logger
Subtype of Object which has to implement all of the methods in the LOG_LEVELS constant
NullLoadingClass
Loads the given class if possible. If loading fails, load Class::Null and return that instead
Plinth
Duck type that can; config, debug, l10n, lock, and log
config
debug
l10n
lock
log
ProcCommer
Duck type that can; run_cmd
run_cmd
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Larry Wall - For the Perl programming language
Copyright (c) 2018 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install Class::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Usul
CPAN shell
perl -MCPAN -e shell install Class::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.