line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::Feed::Enclosure; |
2
|
2
|
|
|
2
|
|
1135
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
51
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
85
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.53'; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
10
|
use base qw( Class::ErrorHandler ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
502
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub wrap { |
10
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
11
|
0
|
|
|
|
|
|
my($c) = @_; |
12
|
0
|
|
|
|
|
|
bless { %$c }, $class; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
*new = \&wrap; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub _var { |
17
|
0
|
|
|
0
|
|
|
my $enclosure = shift; |
18
|
0
|
|
|
|
|
|
my $var = shift; |
19
|
0
|
0
|
|
|
|
|
$enclosure->{$var} = shift if @_; |
20
|
0
|
|
|
|
|
|
$enclosure->{$var}; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
sub type { shift->_var('type', @_) } |
24
|
0
|
|
|
0
|
1
|
|
sub length { shift->_var('length', @_) } |
25
|
0
|
|
|
0
|
1
|
|
sub url { shift->_var('url', @_) } |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
__END__ |