| 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 | ||