line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Serialize::Serializer::YAML::XS; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:YANICK'; |
3
|
|
|
|
|
|
|
#ABSTRACT: YAML:XS serializer for File::Serialize |
4
|
|
|
|
|
|
|
$File::Serialize::Serializer::YAML::XS::VERSION = '1.5.1'; |
5
|
5
|
|
|
5
|
|
4468
|
use strict; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
161
|
|
6
|
5
|
|
|
5
|
|
25
|
use warnings; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
126
|
|
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
27
|
use Moo; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
27
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
with 'File::Serialize::Serializer'; |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
0
|
1
|
0
|
sub extensions { qw/ yml yaml / }; |
13
|
|
|
|
|
|
|
|
14
|
42
|
|
|
42
|
1
|
174
|
sub precedence { 110 } |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub serialize { |
17
|
|
|
|
|
|
|
my( $self, $data, $options ) = @_; |
18
|
|
|
|
|
|
|
YAML::XS::Dump($data); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub deserialize { |
23
|
|
|
|
|
|
|
my( $self, $data, $options ) = @_; |
24
|
|
|
|
|
|
|
YAML::XS::Load($data); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |