Statocles::Types - Type constraints and coercions for Statocles
version 0.033
use Statocles::Class; use Statocles::Types qw( :all ); has store => ( isa => Store, coerce => Store->coercion, ); has theme => ( isa => Theme, coerce => Theme->coercion, );
This is a type library for common Statocles types.
An object that consumes the Statocles::Store role.
This can be coerced from any Path::Tiny object or any String, which will be used as the filesystem path to the store's documents (the path attribute). The coersion creates a Staticles::Store::File object.
A Statocles::Theme object.
This can be coerced from any Path::Tiny object or any String, which will be used as the store attribute (which will then be given to the Store's path attribute).
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2015 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Statocles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statocles
CPAN shell
perl -MCPAN -e shell install Statocles
For more information on module installation, please visit the detailed CPAN module installation guide.