Peter Flanigan > Class-Usul > Class::Usul::Types

Download:
class-usul/Class-Usul-0.77.1.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: v0.77.1   Source  

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 and data_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 and 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

ProcCommer

Duck type that can; run_cmd

Subroutines/Methods ^

None

Configuration and Environment ^

None

Diagnostics ^

None

Dependencies ^

Class::Usul::Constants
Class::Usul::Functions
Type::Tiny

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) 2016 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

syntax highlighting: