line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#============================================================= -*-Perl-*- |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Pod::POM::Node::Head2 |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# DESCRIPTION |
6
|
|
|
|
|
|
|
# Module implementing specific nodes in a Pod::POM, subclassed from |
7
|
|
|
|
|
|
|
# Pod::POM::Node. |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# AUTHOR |
10
|
|
|
|
|
|
|
# Andy Wardley |
11
|
|
|
|
|
|
|
# Andrew Ford |
12
|
|
|
|
|
|
|
# |
13
|
|
|
|
|
|
|
# COPYRIGHT |
14
|
|
|
|
|
|
|
# Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved. |
15
|
|
|
|
|
|
|
# Copyright (C) 2009 Andrew Ford. All Rights Reserved. |
16
|
|
|
|
|
|
|
# |
17
|
|
|
|
|
|
|
# This module is free software; you can redistribute it and/or |
18
|
|
|
|
|
|
|
# modify it under the same terms as Perl itself. |
19
|
|
|
|
|
|
|
# |
20
|
|
|
|
|
|
|
# REVISION |
21
|
|
|
|
|
|
|
# $Id: Head2.pm 89 2013-05-30 07:41:52Z ford $ |
22
|
|
|
|
|
|
|
# |
23
|
|
|
|
|
|
|
#======================================================================== |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
package Pod::POM::Node::Head2; |
26
|
|
|
|
|
|
|
$Pod::POM::Node::Head2::VERSION = '2.00'; |
27
|
|
|
|
|
|
|
require 5.006; |
28
|
18
|
|
|
18
|
|
76
|
use strict; |
|
18
|
|
|
|
|
28
|
|
|
18
|
|
|
|
|
426
|
|
29
|
18
|
|
|
18
|
|
85
|
use warnings; |
|
18
|
|
|
|
|
25
|
|
|
18
|
|
|
|
|
430
|
|
30
|
|
|
|
|
|
|
|
31
|
18
|
|
|
18
|
|
74
|
use parent qw( Pod::POM::Node ); |
|
18
|
|
|
|
|
24
|
|
|
18
|
|
|
|
|
111
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
our @ATTRIBS = ( title => undef ); |
34
|
|
|
|
|
|
|
our @ACCEPT = qw( head3 head4 over begin for text verbatim code ); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub new { |
37
|
34
|
|
|
34
|
0
|
65
|
my ($class, $pom, $title) = @_; |
38
|
34
|
50
|
50
|
|
|
140
|
$title = $pom->parse_sequence($title) |
39
|
|
|
|
|
|
|
|| return $class->error($pom->error()) |
40
|
|
|
|
|
|
|
if length $title; |
41
|
34
|
|
|
|
|
146
|
return $class->SUPER::new($pom, $title); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 NAME |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Pod::POM::Node::Head2 - |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 SYNOPSIS |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
use Pod::POM::Nodes; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 DESCRIPTION |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This module implements a specialization of the node class to represent C<=head2> elements. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 AUTHOR |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Andrew Ford Ea.ford@ford-mason.co.ukE |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Andy Wardley Eabw@kfs.orgE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 COPYRIGHT |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Copyright (C) 2009 Andrew Ford. All Rights Reserved. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or |
71
|
|
|
|
|
|
|
modify it under the same terms as Perl itself. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 SEE ALSO |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Consult L for a discussion of nodes. |