line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Serializer::Config::General; |
2
|
11
|
|
|
11
|
|
510
|
BEGIN { @Data::Serializer::Config::General::ISA = qw(Data::Serializer) } |
3
|
11
|
|
|
11
|
|
76
|
use warnings; |
|
11
|
|
|
|
|
25
|
|
|
11
|
|
|
|
|
370
|
|
4
|
11
|
|
|
11
|
|
66
|
use strict; |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
419
|
|
5
|
11
|
|
|
11
|
|
76
|
use Config::General; |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
687
|
|
6
|
11
|
|
|
11
|
|
69
|
use vars qw($VERSION @ISA); |
|
11
|
|
|
|
|
25
|
|
|
11
|
|
|
|
|
2667
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
$VERSION = '0.02'; |
9
|
|
|
|
|
|
|
sub options { |
10
|
176
|
|
|
176
|
1
|
1324
|
return (shift)->{options}; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub serialize { |
14
|
88
|
|
|
88
|
1
|
145
|
my $self = (shift); |
15
|
88
|
|
|
|
|
143
|
my $ref = (shift); |
16
|
88
|
|
|
|
|
121
|
return (new Config::General(%{$self->options()}, -ConfigHash => $ref))->save_string(); |
|
88
|
|
|
|
|
187
|
|
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub deserialize { |
20
|
88
|
|
|
88
|
1
|
148
|
my $self = (shift); |
21
|
88
|
|
|
|
|
148
|
my $ref = (shift); |
22
|
88
|
|
|
|
|
150
|
my %hash = (new Config::General(%{$self->options()}, -String => $ref))->getall(); |
|
88
|
|
|
|
|
222
|
|
23
|
88
|
|
|
|
|
74264
|
return \%hash; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |