| 1 | package Data::Paginator::Types; | ||
| 2 | 6 | $Data::Paginator::Types::VERSION = '0.08'; | |
| 3 | 6 | ▶ | use MooseX::Types -declare => [qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | PositiveInt | ||
| 5 | 6 | )]; | |
| 6 | |||
| 7 | 6 | ▶ | use MooseX::Types::Moose qw(Int); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | # ABSTRACT: Defines types used by Data::Paginator | ||
| 10 | |||
| 11 | subtype PositiveInt, | ||
| 12 | as Int, | ||
| 13 | 139 | ▶ | where { $_ >= 0 }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 14 | 0 | ▶ | message { 'Number is not equal to or larger than 0' }; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 15 | |||
| 16 | 6 | 1; | |
| 17 | |||
| 18 | __END__ | ||