| 1 | package CPAN::Diff::Module; | ||
| 2 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 1 | has name => (is => 'rw', required => 1); | |
| 5 | 1 | has local_version => (is => 'rw'); | |
| 6 | 1 | has cpan_version => (is => 'rw'); | |
| 7 | 1 | has cpan_dist => (is => 'rw'); | |
| 8 | |||
| 9 | 1 | 1; | |
| 10 | |||
| 11 | =encoding utf-8 | ||
| 12 | |||
| 13 | =head1 NAME | ||
| 14 | |||
| 15 | CPAN::Diff::Module - Object representing module metadata | ||
| 16 | |||
| 17 | =head1 SYNOPSIS | ||
| 18 | |||
| 19 | use CPAN::Diff::Module; | ||
| 20 | |||
| 21 | my $module = CPAN::Diff::Module->new( | ||
| 22 | name => 'Acme::Color', | ||
| 23 | local_version => '0.01', | ||
| 24 | cpan_version => '0.02', | ||
| 25 | cpan_dist => $dist, # a CPAN::DistnameInfo object | ||
| 26 | ); | ||
| 27 | |||
| 28 | $module->name; | ||
| 29 | $module->local_version; | ||
| 30 | $module->cpan_version; | ||
| 31 | $module->cpan_dist; | ||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | Object representing module metadata. | ||
| 38 | |||
| 39 | =head1 LICENSE | ||
| 40 | |||
| 41 | Copyright (C) Eric Johnson. | ||
| 42 | |||
| 43 | This library is free software; you can redistribute it and/or modify | ||
| 44 | it under the same terms as Perl itself. | ||
| 45 | |||
| 46 | =head1 AUTHOR | ||
| 47 | |||
| 48 | Eric Johnson E<lt>eric.git@iijo.orgE<gt> | ||
| 49 | |||
| 50 | =cut | ||