Name
Class::Usul::Types - Defines type constraints
Synopsis
use Class::Usul::Types q(:all);
Description
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
anddata_dump
. Load and dump, lump DateTimeRef
-
Coerces a DateTime object from a string
Localiser
-
Duck type that can;
localize
Locker
-
Duck type that can;
reset
andset
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
, andlog
ProcCommer
-
Duck type that can;
run_cmd
Subroutines/Methods
None
Configuration and Environment
None
Diagnostics
None
Dependencies
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Author
Peter Flanigan, <pjfl@cpan.org>
Acknowledgements
Larry Wall - For the Perl programming language
License and Copyright
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