summaryrefslogtreecommitdiff
path: root/lib/Module/CPANfile/Prereq.pm
blob: cf675f179f28bcd01c9c778b5c6bd7b2f8d034d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package Module::CPANfile::Prereq;
use strict;

sub new {
    my($class, %options) = @_;
    bless \%options, $class;
}

sub feature { $_[0]->{feature} }
sub phase   { $_[0]->{phase} }
sub type    { $_[0]->{type} }
sub module  { $_[0]->{module} }
sub requirement { $_[0]->{requirement} }

sub match_feature {
    my($self, $identifier) = @_;
    no warnings 'uninitialized';
    $self->feature eq $identifier;
}

1;