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;
2             # ABSTRACT: a plugin that will get a section into a woven document
3             $Pod::Weaver::Role::Section::VERSION = '4.017';
4 10     10   7463 use Moose::Role;
  10         26  
  10         116  
5             with 'Pod::Weaver::Role::Plugin';
6              
7 10     10   56014 use namespace::autoclean;
  10         29  
  10         119  
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.017
38              
39             =head1 IMPLEMENTING
40              
41             This role is used by plugins that will append sections to the output document.
42             They must provide a method, C<weave_section> which will be invoked like this:
43              
44             $section_plugin->weave_section($output_document, \%input);
45              
46             They are expected to append their output to the output document, but they are
47             free to behave differently if it's needed to do something really cool.
48              
49             =head1 AUTHOR
50              
51             Ricardo SIGNES <rjbs@cpan.org>
52              
53             =head1 COPYRIGHT AND LICENSE
54              
55             This software is copyright (c) 2021 by Ricardo SIGNES.
56              
57             This is free software; you can redistribute it and/or modify it under
58             the same terms as the Perl 5 programming language system itself.
59              
60             =cut