Name

File::DataClass::Types - A type constraint library

Synopsis

use Moo;
use File::DataClass::Types qw( Path Directory File );

Description

Defines the type constraints used in this distribution

Configuration and Environment

Defines these subtypes

Cache

Is a File::DataClass::Cache

DummyClass

A string value 'none'

HashRefOfBools

Coerces a hash ref of boolean true values from the keys in an array ref

Lock

Is a Class::Null or can set and reset

OctalNum

Coerces a string to a number which is stored in octal

Path

Is a File::DataClass::IO. Can be coerced from either a string or an array ref

Result

Is a File::DataClass::Result

Directory

Subtype of Path which is a directory. Can be coerced from either a string or an array ref

File

Subtype of Path which is a file. Can be coerced from either a string or an array ref

Subroutines/Methods

None

Diagnostics

None

Dependencies

File::DataClass::IO
Type::Tiny
Unexpected

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>

License and Copyright

Copyright (c) 2017 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