| 1 | package Email::MIME::Kit::ManifestReader::JSON 3.000007; | ||
| 2 | # ABSTRACT: read manifest.json files | ||
| 3 | |||
| 4 | 6 | ▶ | use v5.20.0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 6 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 6 | with 'Email::MIME::Kit::Role::ManifestReader', | |
| 8 | 'Email::MIME::Kit::Role::ManifestDesugarer'; | ||
| 9 | |||
| 10 | 6 | ▶ | use JSON 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | sub read_manifest { | ||
| 13 | 7 | ▶ | my ($self) = @_; |
|
Subroutine
read_manifest: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 7 | my $json_ref = $self->kit->kit_reader->get_kit_entry('manifest.json'); | |
| 16 | |||
| 17 | 7 | my $content = JSON->new->utf8->decode($$json_ref); | |
| 18 | } | ||
| 19 | |||
| 20 | 6 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 6 | __PACKAGE__->meta->make_immutable; | |
| 22 | 6 | 1; | |
| 23 | |||
| 24 | __END__ | ||
| 25 | |||
| 26 | =pod | ||
| 27 | |||
| 28 | =encoding UTF-8 | ||
| 29 | |||
| 30 | =head1 NAME | ||
| 31 | |||
| 32 | Email::MIME::Kit::ManifestReader::JSON - read manifest.json files | ||
| 33 | |||
| 34 | =head1 VERSION | ||
| 35 | |||
| 36 | version 3.000007 | ||
| 37 | |||
| 38 | =head1 PERL VERSION | ||
| 39 | |||
| 40 | This library should run on perls released even a long time ago. It should work | ||
| 41 | on any version of perl released in the last five years. | ||
| 42 | |||
| 43 | Although it may work on older versions of perl, no guarantee is made that the | ||
| 44 | minimum required version will not be increased. The version may be increased | ||
| 45 | for any reason, and there is no promise that patches will be accepted to lower | ||
| 46 | the minimum required perl. | ||
| 47 | |||
| 48 | =head1 AUTHOR | ||
| 49 | |||
| 50 | Ricardo Signes <rjbs@cpan.org> | ||
| 51 | |||
| 52 | =head1 COPYRIGHT AND LICENSE | ||
| 53 | |||
| 54 | This software is copyright (c) 2023 by Ricardo Signes. | ||
| 55 | |||
| 56 | This is free software; you can redistribute it and/or modify it under | ||
| 57 | the same terms as the Perl 5 programming language system itself. | ||
| 58 | |||
| 59 | =cut | ||