blib/lib/Catmandu/Fixable.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Catmandu/Fix/Bind/identity.pm ↑ Summary blib/lib/Catmandu/IdGenerator.pm »
1 package Catmandu::Fixable;
2  
3 52 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 52 our $VERSION = '1.0201_02';
6  
7 52 ▶use Catmandu::Util qw(is_instance);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 52 ▶use Catmandu;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 52 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 52 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 has _fixer =>
13 9 ▶ (is => 'ro', init_arg => 'fix', coerce => sub {Catmandu->fixer($_[0])},);
Subroutine __ANON__: called CC=1 SCAR=0.0
14  
15 52 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
« blib/lib/Catmandu/Fix/Bind/identity.pm ↑ Summary blib/lib/Catmandu/IdGenerator.pm »