File Coverage

blib/lib/Pod/Weaver/Role/Section.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Pod::Weaver::Role::Section 4.018;
2             # ABSTRACT: a plugin that will get a section into a woven document
3              
4 10     10   6417 use Moose::Role;
  10         25  
  10         90  
5             with 'Pod::Weaver::Role::Plugin';
6              
7 10     10   51304 use namespace::autoclean;
  10         28  
  10         103  
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             requires 'weave_section';
22              
23             1;
24              
25             __END__
26              
27             =pod
28              
29             =encoding UTF-8
30              
31             =head1 NAME
32              
33             Pod::Weaver::Role::Section - a plugin that will get a section into a woven document
34              
35             =head1 VERSION
36              
37             version 4.018
38              
39             =head1 PERL VERSION SUPPORT
40              
41             This module has the same support period as perl itself: it supports the two
42             most recent versions of perl. (That is, if the most recently released version
43             is v5.40, then this module should work on both v5.40 and v5.38.)
44              
45             Although it may work on older versions of perl, no guarantee is made that the
46             minimum required version will not be increased. The version may be increased
47             for any reason, and there is no promise that patches will be accepted to lower
48             the minimum required perl.
49              
50             =head1 IMPLEMENTING
51              
52             This role is used by plugins that will append sections to the output document.
53             They must provide a method, C<weave_section> which will be invoked like this:
54              
55             $section_plugin->weave_section($output_document, \%input);
56              
57             They are expected to append their output to the output document, but they are
58             free to behave differently if it's needed to do something really cool.
59              
60             =head1 AUTHOR
61              
62             Ricardo SIGNES <rjbs@semiotic.systems>
63              
64             =head1 COPYRIGHT AND LICENSE
65              
66             This software is copyright (c) 2021 by Ricardo SIGNES.
67              
68             This is free software; you can redistribute it and/or modify it under
69             the same terms as the Perl 5 programming language system itself.
70              
71             =cut