line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::ACME::X::HashBase; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
659
|
use strict; |
|
2
|
|
|
|
|
16
|
|
|
2
|
|
|
|
|
43
|
|
4
|
2
|
|
|
2
|
|
6
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
39
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
5
|
use parent qw( Net::ACME::X::OverloadBase ); |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
10
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
11
|
|
|
11
|
0
|
14
|
my ( $class, $string, $props_hr ) = @_; |
10
|
|
|
|
|
|
|
|
11
|
11
|
|
|
|
|
41
|
$class->_check_overload(); |
12
|
|
|
|
|
|
|
|
13
|
11
|
50
|
|
|
|
40
|
my %attrs = $props_hr ? %$props_hr : (); |
14
|
|
|
|
|
|
|
|
15
|
11
|
|
|
|
|
45
|
return bless [ $string, \%attrs ], $class; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub get { |
19
|
23
|
|
|
23
|
0
|
2735
|
my ( $self, $attr ) = @_; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
#Do we need to clone this? Could JSON suffice, or do we need Clone? |
22
|
23
|
|
|
|
|
113
|
return $self->[1]{$attr}; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub to_string { |
26
|
38
|
|
|
38
|
0
|
958
|
my ($self) = @_; |
27
|
|
|
|
|
|
|
|
28
|
38
|
|
|
|
|
199
|
return $self->[0]; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |