line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Email::MIME::Kit::Role::Validator 3.000008; |
2
|
|
|
|
|
|
|
# ABSTRACT: things that validate assembly parameters |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
22133
|
use v5.20.0; |
|
3
|
|
|
|
|
40
|
|
5
|
3
|
|
|
3
|
|
23
|
use Moose::Role; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
20
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
#pod =head1 IMPLEMENTING |
8
|
|
|
|
|
|
|
#pod |
9
|
|
|
|
|
|
|
#pod This role also performs L<Email::MIME::Kit::Role::Component>. |
10
|
|
|
|
|
|
|
#pod |
11
|
|
|
|
|
|
|
#pod Classes implementing this role are used to validate that the arguments passed |
12
|
|
|
|
|
|
|
#pod to C<< $mkit->assemble >> are valid. Classes must provide a C<validate> method |
13
|
|
|
|
|
|
|
#pod which will be called with the hashref of values passed to the kit's C<assemble> |
14
|
|
|
|
|
|
|
#pod method. If the arguments are not valid for the kit, the C<validate> method |
15
|
|
|
|
|
|
|
#pod should raise an exception. |
16
|
|
|
|
|
|
|
#pod |
17
|
|
|
|
|
|
|
#pod =cut |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
with 'Email::MIME::Kit::Role::Component'; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
requires 'validate'; |
22
|
|
|
|
|
|
|
|
23
|
3
|
|
|
3
|
|
9274
|
no Moose::Role; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
14
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=pod |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=encoding UTF-8 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Email::MIME::Kit::Role::Validator - things that validate assembly parameters |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
version 3.000008 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 PERL VERSION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This library should run on perls released even a long time ago. It should |
43
|
|
|
|
|
|
|
work on any version of perl released in the last five years. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
46
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
47
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to |
48
|
|
|
|
|
|
|
lower the minimum required perl. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 IMPLEMENTING |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This role also performs L<Email::MIME::Kit::Role::Component>. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Classes implementing this role are used to validate that the arguments passed |
55
|
|
|
|
|
|
|
to C<< $mkit->assemble >> are valid. Classes must provide a C<validate> method |
56
|
|
|
|
|
|
|
which will be called with the hashref of values passed to the kit's C<assemble> |
57
|
|
|
|
|
|
|
method. If the arguments are not valid for the kit, the C<validate> method |
58
|
|
|
|
|
|
|
should raise an exception. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 AUTHOR |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Ricardo Signes <cpan@semiotic.systems> |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This software is copyright (c) 2023 by Ricardo Signes. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
69
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |