line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::Fix::Bind::Group; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
6629
|
use Catmandu::Sane; |
|
9
|
|
|
|
|
27
|
|
|
9
|
|
|
|
|
69
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.2020'; |
6
|
|
|
|
|
|
|
|
7
|
9
|
|
|
9
|
|
70
|
use Moo::Role; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
70
|
|
8
|
9
|
|
|
9
|
|
3738
|
use namespace::clean; |
|
9
|
|
|
|
|
41
|
|
|
9
|
|
|
|
|
67
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
1; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__END__ |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=pod |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Catmandu::Fix::Bind::Group - a role for a binder that executes all fixes as one group |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 SYNOPSIS |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# Fixes fix1(), ... fixN() will be passed as one function to the internal 'bind' method |
23
|
|
|
|
|
|
|
do identity() |
24
|
|
|
|
|
|
|
fix1() |
25
|
|
|
|
|
|
|
. |
26
|
|
|
|
|
|
|
. |
27
|
|
|
|
|
|
|
fixN() |
28
|
|
|
|
|
|
|
end |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
# Fixes fix1(), ... fixN() will be passed as one by one to the internal 'bind' method |
31
|
|
|
|
|
|
|
do maybe() |
32
|
|
|
|
|
|
|
fix1() |
33
|
|
|
|
|
|
|
. |
34
|
|
|
|
|
|
|
. |
35
|
|
|
|
|
|
|
fixN() |
36
|
|
|
|
|
|
|
end |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 DESCRIPTION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
This role flags a L<Catmandu::Fix::Bind> implementation as a L<Catmandu::Fix::Bind::Group>. |
41
|
|
|
|
|
|
|
All fixes inside a Bind will be treated as one singular function. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SEE ALSO |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
L<Catmandu::Fix::Bind> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |