Weaver/Role/Section.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Weaver/Role/Preparer.pm ↑ Summary Weaver/Role/Transformer.pm »
1 package Pod::Weaver::Role::Section 4.022;
2 # ABSTRACT: a plugin that will get a section into a woven document
3  
4 10 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 10 with 'Pod::Weaver::Role::Plugin';
6  
7 10 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 #pod =head1 IMPLEMENTING
10 #pod
11 #pod This role is used by plugins that will append sections to the output document.
12 #pod They must provide a method, C<weave_section> which will be invoked like this:
13 #pod
14 #pod $section_plugin->weave_section($output_document, \%input);
15 #pod
16 #pod They are expected to append their output to the output document, but they are
17 #pod free to behave differently if it's needed to do something really cool.
18 #pod
19 #pod =cut
20  
21 10 requires 'weave_section';
22  
23 10 1;
24  
25 __END__
« Weaver/Role/Preparer.pm ↑ Summary Weaver/Role/Transformer.pm »