MooX::Types::MooseLike::Numeric - Moo types for numbers
package MyPackage;
use Moo;
use MooX::Types::MooseLike::Numeric qw(PositiveInt);
has "daily_breathes" => (
is => 'rw',
isa => PositiveInt
);
A set of numeric types to be used in Moo-based classes. Adapted from
MooseX::Types::Common::Numeric
Available types are listed below.
- PositiveNum
- PositiveOrZeroNum
- PositiveInt
- PositiveOrZeroInt
- NegativeNum
- NegativeOrZeroNum
- NegativeInt
- NegativeOrZeroInt
- SingleDigit
MooX::Types::MooseLike - a type builder.
MooX::Types::MooseLike::Base - a set of basic types.
MooX::Types::MooseLike::Email,
MooX::Types::MooseLike::DateTime
mateu - Mateu X. Hunter (cpan:MATEU) <hunter@missoula.org>
amidos - Dmitry Matrosov (cpan:AMIDOS) <amidos@amidos.ru>
Copyright (c) 2011-2015 the MooX::Types::MooseLike::Numeric "AUTHOR"
This library is free software and may be distributed under the same terms as
perl itself.