App::SmokeBrew::Types - Moose types for smokebrew
use App::SmokeBrew::Types qw[ArrayRefUri PerlVersion ArrayRefStr]; has 'version' => ( is => 'ro', isa => 'PerlVersion', coerce => 1, ); has 'things' => ( is => 'ro', isa => 'ArrayRefStr', coerce => 1, ); has 'websites' => ( is => 'ro', isa => 'ArrayRefUri', coerce => 1, );
It provides the following types:
A Perl::Version object.
new in Perl::Version
Constrained to existing in Module::CoreList
released and being >=
An arrayref of URI objects.
Coerces from <Str> and
ArrayRef[Str] via MooseX::Types::URI
An arrayref of
Thanks to Florian Ragwitz for the MooseX::Types::URI sugar.
Chris Williams <email@example.com>
This software is copyright (c) 2017 by Chris Williams.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.