summaryrefslogtreecommitdiff
path: root/lib/Module/CPANfile/Prereq.pm
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2014-08-29 04:48:18 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2014-08-29 04:48:18 +0000
commit6b1d736955543538c54f1d8033ce3bdcb175da91 (patch)
treef7f7e23929d493647c0e2f9b1a556d3101194538 /lib/Module/CPANfile/Prereq.pm
downloadModule-CPANfile-tarball-master.tar.gz
Module-CPANfile-1.1000HEADModule-CPANfile-1.1000master
Diffstat (limited to 'lib/Module/CPANfile/Prereq.pm')
-rw-r--r--lib/Module/CPANfile/Prereq.pm21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Module/CPANfile/Prereq.pm b/lib/Module/CPANfile/Prereq.pm
new file mode 100644
index 0000000..cf675f1
--- /dev/null
+++ b/lib/Module/CPANfile/Prereq.pm
@@ -0,0 +1,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;