line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::Generator::RSS10::Module; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$XML::Generator::RSS10::Module::VERSION = '0.02'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
10
|
|
|
10
|
|
61
|
use strict; |
|
10
|
|
|
|
|
22
|
|
|
10
|
|
|
|
|
1891
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub Prefix { |
9
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
$class =~ /^XML::Generator::RSS10::(\w+)$/; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
return $1; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub contents { |
17
|
0
|
|
|
0
|
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
|
|
|
|
|
|
|
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 |
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__ |