:Perl::Distmap::VERSION = '0.2.0';
}
# ABSTRACT: A reader/writer for the C<metadata/perl/distmap.json> file.
use 5.010000;
use Moose;
has map => (
isa => 'Gentoo::Perl::Distmap::Map',
is
2] }
sub decoder {
return state $json = do { require JSON; JSON->new->pretty->utf8->canonical; }
}
sub encoder {
return state $json = do { require JSON; JSON->new->pretty->utf8->canonical; }
}
for the C<metadata/perl/distmap.json> file.
=head1 VERSION
version 0.2.0
=head1 SYNOPSIS
my $dm = Gentoo::Perl::Distmap->load( file => '../path/to/distmap.json' );
$dm->save( file => '/tmp/fo