File Coverage

blib/lib/PRANG/Cookbook/Node.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1              
2             package PRANG::Cookbook::Node;
3             $PRANG::Cookbook::Node::VERSION = '0.19';
4 1     1   1975 use Moose::Role;
  1         4359  
  1         5  
5              
6             #sub xmlns { "" }
7              
8             1;
9              
10             =pod
11              
12             =head1 NAME
13              
14             PRANG::Cookbook::Node - Baseclass for nodes in the Cookbook series
15              
16             =head1 SYNOPSIS
17              
18             package PRANG::Cookbook::Node;
19            
20             use Moose::Role;
21            
22             #sub xmlns { "" } # no namespaces required (optional)
23            
24             1;
25              
26             =head1 DESCRIPTION
27              
28             This class is just a base class for every node in the Cookbook
29             series. It contains nothing more than what is shown above and just
30             inherits from L<Moose::Role> and provides a convenient place for a
31             global XML namespace to be specified.
32              
33             It also overrides the xmlns method to define that these nodes do not
34             have namespaces (as a default). Instead if a node chooses to define
35             what namespace it should be in, it is welcome to override this method
36             too.
37              
38             =head1 USAGE
39              
40              
41              
42             =cut
43