File: Group.pm

package info (click to toggle)
libcatmandu-perl 1.2020-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,552 kB
  • sloc: perl: 16,933; makefile: 24; sh: 1
file content (47 lines) | stat: -rw-r--r-- 790 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package Catmandu::Fix::Bind::Group;

use Catmandu::Sane;

our $VERSION = '1.2020';

use Moo::Role;
use namespace::clean;

1;

__END__

=pod

=head1 NAME

Catmandu::Fix::Bind::Group - a role for a binder that executes all fixes as one group

=head1 SYNOPSIS

    # Fixes fix1(), ... fixN() will be passed as one function to the internal 'bind' method
	do identity()
	   fix1()
	   .
	   .
	   fixN()
	end

    # Fixes fix1(), ... fixN() will be passed as one by one to the internal 'bind' method
    do maybe()
       fix1()
       .
       .
       fixN()
    end

=head1 DESCRIPTION

This role flags a L<Catmandu::Fix::Bind> implementation as a L<Catmandu::Fix::Bind::Group>.
All fixes inside a Bind will be treated as one singular function.

=head1 SEE ALSO

L<Catmandu::Fix::Bind>

=cut