line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use Catmandu::Sane; |
3
|
106
|
|
|
106
|
|
52098
|
|
|
106
|
|
|
|
|
224
|
|
|
106
|
|
|
|
|
713
|
|
4
|
|
|
|
|
|
|
our $VERSION = '1.2019'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Catmandu::Fix; |
7
|
106
|
|
|
106
|
|
2318
|
use Moo::Role; |
|
106
|
|
|
|
|
227
|
|
|
106
|
|
|
|
|
1912
|
|
8
|
106
|
|
|
106
|
|
460
|
use namespace::clean; |
|
106
|
|
|
|
|
200
|
|
|
106
|
|
|
|
|
579
|
|
9
|
106
|
|
|
106
|
|
36043
|
|
|
106
|
|
|
|
|
328
|
|
|
106
|
|
|
|
|
624
|
|
10
|
|
|
|
|
|
|
with 'Catmandu::Logger'; |
11
|
|
|
|
|
|
|
with 'Catmandu::Fix::Inlineable'; |
12
|
|
|
|
|
|
|
with 'Catmandu::Emit'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
requires 'emit'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my ($self, $data) = @_; |
17
|
|
|
|
|
|
|
Catmandu::Fix->new(fixes => [$self])->fix($data); |
18
|
319
|
|
|
319
|
0
|
10216
|
} |
19
|
319
|
|
|
|
|
4968
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Catmandu::Fix::Base - Base role for all code emitting Catmandu fixes |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
package Catmandu::Fix::my_fix; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
use Catmandu::Sane; |
34
|
|
|
|
|
|
|
use Moo; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
with 'Catmandu::Fix::Base'; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub emit { |
39
|
|
|
|
|
|
|
my ($self, $fixer) = @_; |
40
|
|
|
|
|
|
|
....FIXER GENERATING CODE.... |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SEE ALSO |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
For more information how to create fixes read the following two blog posts: |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
http://librecat.org/catmandu/2014/03/14/create-a-fixer.html |
48
|
|
|
|
|
|
|
http://librecat.org/catmandu/2014/03/26/creating-a-fixer-2.html |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |