our $AUTHORITY = 'cpan:YANICK';
#ABSTRACT: YAML::Tiny serializer for File::Serialize
$File::Serialize::Serializer::YAML::Tiny::VERSION = '1.5.1';
use strict;
use Moo;
sub extensions { qw/ yml yaml / };
sub serialize {
my( $self, $data, $options ) = @_;
YAML::Tiny->new($data)->write_string
}
sub deserialize {
my( $self, $data, $options ) = @_;
YAML::Tiny->new->read_string($data)->[0];
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
File::Serialize::Serializer::YAML::Tiny - YAML::Tiny serializer for File::Serialize
=head1 VERSION
version 1.5.1
=head1 DESCRIPTION
=over
=item B<extensions>
C<yaml>, C<yml>.
=item B<precedence>
100
=item B<module used>
L<YAML::Tiny>
=item B<supported options>
none
=back
=head1 AUTHOR
Yanick Champoux <yanick@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2021, 2019, 2017, 2016, 2015 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut