line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::Fixable; |
2
|
|
|
|
|
|
|
|
3
|
65
|
|
|
65
|
|
137974
|
use Catmandu::Sane; |
|
65
|
|
|
|
|
180
|
|
|
65
|
|
|
|
|
442
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.2020'; |
6
|
|
|
|
|
|
|
|
7
|
65
|
|
|
65
|
|
523
|
use Catmandu::Util qw(is_instance); |
|
65
|
|
|
|
|
170
|
|
|
65
|
|
|
|
|
3170
|
|
8
|
65
|
|
|
65
|
|
5634
|
use Catmandu; |
|
65
|
|
|
|
|
183
|
|
|
65
|
|
|
|
|
529
|
|
9
|
65
|
|
|
65
|
|
18408
|
use Moo::Role; |
|
65
|
|
|
|
|
188
|
|
|
65
|
|
|
|
|
464
|
|
10
|
65
|
|
|
65
|
|
26044
|
use namespace::clean; |
|
65
|
|
|
|
|
188
|
|
|
65
|
|
|
|
|
476
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has _fixer => |
13
|
|
|
|
|
|
|
(is => 'ro', init_arg => 'fix', coerce => sub {Catmandu->fixer($_[0])},); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__END__ |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Catmandu::Fixable - a Catmandu role to apply fixes |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 DESCRIPTION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
This role provides a C<fix> attribute to apply fixes to items processed by |
28
|
|
|
|
|
|
|
L<Catmandu::Importer>, L<Catmandu::Exporter>, and L<Catmandu::Bag>. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 CONFIGURATION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 fix |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
An ARRAY of one or more fixes or file scripts to be applied to items. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SEE ALSO |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
L<Catmandu::Fix> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |