- COPYRIGHT AND LICENSE
Statocles::Types - Type constraints and coercions for Statocles
use Statocles::Class; use Statocles::Types qw( :all ); has store => ( isa => Store, coerce => Store->coercion, ); has theme => ( isa => Theme, coerce => Theme->coercion, ); has link => ( isa => Link, coerce => Link->coercion, ); has links => ( isa => LinkArray, coerce => LinkArray->coercion, ); has nav => ( isa => LinkHash, coerce => LinkHash->coercion, ); has date => ( isa => DateTimeObj, coerce => DateTimeObj->coercion, );
This is a type library for common Statocles types.
A Statocles::Store object.
A Statocles::Theme object.
A Statocles::Link object.
This can be coerced from any HashRef.
An arrayref of Statocles::Link objects.
This can be coerced from any ArrayRef of HashRefs.
This can be coerced from any HashRef of ArrayRef of HashRefs.
A DateTime::Moonpig object representing a date/time. This can be coerced from a
YYYY-MM-DD string or a
YYYY-MM-DD HH:MM:SS string.
Doug Bell <email@example.com>
This software is copyright (c) 2016 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.