blib/lib/Pod/POM/Node/Code.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 84.6% 22 / 26 CC 2 SCAR 3.4
CC
2
Cov
95%
present
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Pod/POM/Node/Verbatim.pm ↑ Summary blib/lib/Pod/POM/Node/Over.pm »
1 #============================================================= -*-Perl-*-
2 #
3 # Pod::POM::Node::Code
4 #
5 # DESCRIPTION
6 # Module implementing specific nodes in a Pod::POM, subclassed from
7 # Pod::POM::Node.
8 #
9 # AUTHOR
10 # Andy Wardley <abw@kfs.org>
11 # Andrew Ford <a.ford@ford-mason.co.uk>
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: Code.pm 89 2013-05-30 07:41:52Z ford $
22 #
23 #========================================================================
24  
25 package Pod::POM::Node::Code;
26 18 $Pod::POM::Node::Code::VERSION = '2.01';
27 18 require 5.006;
28 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 18 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
30  
31 18 ▶use parent qw( Pod::POM::Node );
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 18 our @ATTRIBS = ( text => '' );
34  
35 3 ▶sub present {
Subroutine present: called CC=2 SCAR=7.0
Pod undocumented
36 3 my ($self, $view) = @_;
37 3 ▶ $view ||= $Pod::POM::DEFAULT_VIEW;
Condition66%2/3
$view ||= $Pod::POM::DEFAULT_VIEW
l!l&&r!l&&!r
210
MC/DC0%0/2
$view ||= $Pod::POM::DEFAULT_VIEW
$view $Pod::POM::DEFAULT_VIEW
Truth table66%2/3
A ||= B
A= $viewB= $Pod::POM::DEFAULT_VIEW
ABresult
1X1
011
000
38 3 return $view->view_code($self->{ text });
39 }
40  
41 18 1;
42  
43 =head1 NAME
44  
45 Pod::POM::Node::Code -
46  
47 =head1 SYNOPSIS
48  
49 =head1 DESCRIPTION
50  
51 This module implements a specialization of the node class to represent code elements.
52  
53 =head1 AUTHOR
54  
55 Andrew Ford E<lt>a.ford@ford-mason.co.ukE<gt>
56  
57 Andy Wardley E<lt>abw@kfs.orgE<gt>
58  
59 =head1 COPYRIGHT
60  
61 Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved.
62  
63 Copyright (C) 2009 Andrew Ford. All Rights Reserved.
64  
65 This module is free software; you can redistribute it and/or
66 modify it under the same terms as Perl itself.
67  
68 =head1 SEE ALSO
69  
70 Consult L<Pod::POM::Node> for a discussion of nodes.
« blib/lib/Pod/POM/Node/Verbatim.pm ↑ Summary blib/lib/Pod/POM/Node/Over.pm »