NAME

Statocles::Types - Type constraints and coercions for Statocles

VERSION

version 0.029

SYNOPSIS

use Statocles::Class;
use Statocles::Types qw( :all );

has store => (
    isa => Store,
    coerce => Store->coercion,
);

has theme => (
    isa => Theme,
    coerce => Theme->coercion,
);

DESCRIPTION

This is a type library for common Statocles types.

TYPES

Store

A Statocles::Store object.

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)

Theme

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

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 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.