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.020;
2             # ABSTRACT: a plugin that will get a section into a woven document
3              
4 10     10   8269 use Moose::Role;
  10         92  
  10         155  
5             with 'Pod::Weaver::Role::Plugin';
6              
7 10     10   65928 use namespace::autoclean;
  10         27  
  10         141  
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.020
38              
39             =head1 PERL VERSION
40              
41             This module should work on any version of perl still receiving updates from
42             the Perl 5 Porters. This means it should work on any version of perl
43             released in the last two to three years. (That is, if the most recently
44             released version is v5.40, then this module should work on both v5.40 and
45             v5.38.)
46              
47             Although it may work on older versions of perl, no guarantee is made that the
48             minimum required version will not be increased. The version may be increased
49             for any reason, and there is no promise that patches will be accepted to
50             lower the minimum required perl.
51              
52             =head1 IMPLEMENTING
53              
54             This role is used by plugins that will append sections to the output document.
55             They must provide a method, C<weave_section> which will be invoked like this:
56              
57             $section_plugin->weave_section($output_document, \%input);
58              
59             They are expected to append their output to the output document, but they are
60             free to behave differently if it's needed to do something really cool.
61              
62             =head1 AUTHOR
63              
64             Ricardo SIGNES <cpan@semiotic.systems>
65              
66             =head1 COPYRIGHT AND LICENSE
67              
68             This software is copyright (c) 2024 by Ricardo SIGNES.
69              
70             This is free software; you can redistribute it and/or modify it under
71             the same terms as the Perl 5 programming language system itself.
72              
73             =cut