| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Pod::Weaver::Section::ReplaceName; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: Add or replace a NAME section with abstract. |
|
4
|
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
169393
|
use Moose; |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
19
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
extends 'Pod::Weaver::Section::Name'; |
|
8
|
|
|
|
|
|
|
with 'Pod::Weaver::Role::SectionReplacer'; |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.99_02'; |
|
11
|
|
|
|
|
|
|
|
|
12
|
2
|
|
|
2
|
1
|
128847
|
sub default_section_name { 'NAME' } |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
__END__ |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Pod::Weaver::Section::ReplaceName - Add or replace a NAME section with abstract. |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 VERSION |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
version 0.99_02 |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 OVERVIEW |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
This section plugin provides the same behaviour as |
|
32
|
|
|
|
|
|
|
L<Pod::Weaver::Section::Name> but with the |
|
33
|
|
|
|
|
|
|
L<Pod::Weaver::Role::SectionReplacer> role applied. |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
This section plugin will produce a hunk of Pod giving the name of the document |
|
36
|
|
|
|
|
|
|
as well as an abstract, like this: |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 NAME |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Some::Document - a document for some |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
It will determine the name and abstract by inspecting the C<ppi_document> |
|
43
|
|
|
|
|
|
|
input parameter. |
|
44
|
|
|
|
|
|
|
It will look for the first package declaration, and for a comment in this form: |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
# ABSTRACT: a document for some |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=for readme stop |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=begin :internal |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 INTERNAL METHODS |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=over |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item default_section_name |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Gives the name used as the heading for this section. |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=back |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=end :internal |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=for readme continue |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 AUTHOR |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Sam Graham <libpod-weaver-pluginbundle-replaceboilerplate-perl BLAHBLAH illusori.co.uk> |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This software is copyright (c) 2010 by Sam Graham <libpod-weaver-pluginbundle-replaceboilerplate-perl BLAHBLAH illusori.co.uk>. |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
75
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |