Name
Class::Usul::Types - Defines type constraints
Synopsis
use Class::Usul::Types q(:all);
Description
Defines the following type constraints;
BaseType
-
Duck type that can;
config
,debug
,l10n
,lock
, andlog
ConfigType
-
Subtype of Object can be coerced from a hash reference
DataTimeType
-
Coerces a DateTime object from a string
EncodingType
-
Subtype of Str which has to be one of the list of encodings in the ENCODINGS constant
FileType
-
Duck type that can;
data_load
IPCType
-
Duck type that can;
run_cmd
L10NType
-
Duck type that can;
localize
LockType
-
Duck type that can;
reset
andset
LogType
-
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
RequestType
-
Duck type that can;
params
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) 2015 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