| 1 | package Syccess::Validator; | ||
| 2 | 9 | our $AUTHORITY = 'cpan:GETTY'; | |
| 3 | # ABSTRACT: Syccess validator | ||
| 4 | 9 | $Syccess::Validator::VERSION = '0.104'; | |
| 5 | 9 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 9 | requires qw( | |
| 8 | validate | ||
| 9 | ); | ||
| 10 | |||
| 11 | 9 | has syccess_field => ( | |
| 12 | is => 'ro', | ||
| 13 | required => 1, | ||
| 14 | handles => [qw( | ||
| 15 | syccess | ||
| 16 | )], | ||
| 17 | ); | ||
| 18 | |||
| 19 | 9 | has arg => ( | |
| 20 | is => 'ro', | ||
| 21 | predicate => 1, | ||
| 22 | ); | ||
| 23 | |||
| 24 | 9 | 1; | |
| 25 | |||
| 26 | __END__ | ||