RSS10/Module.pm

filter: Statementstmt 40.0% 6 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod 0.0% 0 / 2 totaltotal 35.0% 7 / 20 CC 2 SCAR 13.2
CC
2
Cov
40%
contents
6.0
Prefix
2.0
BEGIN
1.0
CRAP 3.8
« RSS10/cc.pm ↑ Summary RSS10/admin.pm »
1 package XML::Generator::RSS10::Module;
2 {
3 10 $XML::Generator::RSS10::Module::VERSION = '0.02';
4 }
5  
6 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub Prefix {
Subroutine Prefix: not called CC=1 SCAR=6.9
Pod undocumented
9 0 my $class = shift;
10  
11 0 $class =~ /^XML::Generator::RSS10::(\w+)$/;
12  
13 0 return $1;
14 }
15  
16 0 ▶sub contents {
Subroutine contents: not called CC=2 SCAR=17.9
Pod undocumented
17 0 my $class = shift;
18 0 my $rss = shift;
19 0 my $p = shift;
20  
21 0 foreach my $elt ( sort keys %$p ) {
22 0 $rss->_element_with_data( $class->Prefix, $elt, $p->{$elt} );
23 0 $rss->_newline_if_pretty;
24 }
25 }
26  
27 10 1;
28  
29 # ABSTRACT: Base class for module that implement RSS 1.0 modules
30  
31  
32  
33 =pod
34  
35 =head1 NAME
36  
37 XML::Generator::RSS10::Module - Base class for module that implement RSS 1.0 modules
38  
39 =head1 VERSION
40  
41 version 0.02
42  
43 =head1 SYNOPSIS
44  
45 package XML::Generator::RSS10::foobar'
46  
47 use base 'XML::Generator::RSS10::Module';
48  
49  
50 sub NamespaceURI { 'http://example.com/foobar' }
51  
52 =head1 DESCRIPTION
53  
54 This module is the base class for all modules that implement RSS 1.0
55 module support.
56  
57 =head1 AUTHOR
58  
59 Dave Rolsky <autarch@urth.org>
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is Copyright (c) 2011 by Dave Rolsky.
64  
65 This is free software, licensed under:
66  
67 The Artistic License 2.0 (GPL Compatible)
68  
69 =cut
70  
71  
72 __END__
« RSS10/cc.pm ↑ Summary RSS10/admin.pm »