| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#============================================================= -*-Perl-*- |
|
2
|
|
|
|
|
|
|
# |
|
3
|
|
|
|
|
|
|
# Pod::POM::Node::Content |
|
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: Content.pm 76 2009-08-20 20:41:33Z ford $ |
|
22
|
|
|
|
|
|
|
# |
|
23
|
|
|
|
|
|
|
#======================================================================== |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
package Pod::POM::Node::Content; |
|
26
|
|
|
|
|
|
|
$Pod::POM::Node::Content::VERSION = '0.30'; |
|
27
|
|
|
|
|
|
|
require 5.006; |
|
28
|
18
|
|
|
18
|
|
72
|
use strict; |
|
|
18
|
|
|
|
|
26
|
|
|
|
18
|
|
|
|
|
393
|
|
|
29
|
18
|
|
|
18
|
|
75
|
use warnings; |
|
|
18
|
|
|
|
|
24
|
|
|
|
18
|
|
|
|
|
433
|
|
|
30
|
|
|
|
|
|
|
|
|
31
|
18
|
|
|
18
|
|
76
|
use Pod::POM::Constants qw( :all ); |
|
|
18
|
|
|
|
|
30
|
|
|
|
18
|
|
|
|
|
2048
|
|
|
32
|
18
|
|
|
18
|
|
74
|
use parent qw( Pod::POM::Node ); |
|
|
18
|
|
|
|
|
23
|
|
|
|
18
|
|
|
|
|
110
|
|
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub new { |
|
35
|
0
|
|
|
0
|
0
|
0
|
my $class = shift; |
|
36
|
0
|
|
|
|
|
0
|
return bless [ @_ ], $class; |
|
37
|
|
|
|
|
|
|
} |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub present { |
|
40
|
298
|
|
|
298
|
0
|
505
|
my ($self, $view) = @_; |
|
41
|
298
|
|
66
|
|
|
528
|
$view ||= $Pod::POM::DEFAULT_VIEW; |
|
42
|
298
|
50
|
|
|
|
527
|
return join('', map { ref $_ ? $_->present($view) : $_ } @$self); |
|
|
549
|
|
|
|
|
6864
|
|
|
43
|
|
|
|
|
|
|
} |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 NAME |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Pod::POM::Node::Content - |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
use Pod::POM::Nodes; |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This module implements a specialization of the node class to represent |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 AUTHOR |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Andrew Ford Ea.ford@ford-mason.co.ukE |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Andy Wardley Eabw@kfs.orgE |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 COPYRIGHT |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved. |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Copyright (C) 2009 Andrew Ford. All Rights Reserved. |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or |
|
74
|
|
|
|
|
|
|
modify it under the same terms as Perl itself. |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Consult L for a discussion of nodes. |