diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-15 19:21:51 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-15 19:21:51 +0000 |
commit | e31f9059a9f3918f12c40d4d66f2db885d6f914a (patch) | |
tree | e87f850b34f4bafba1f735ed2162a0d7cba5a635 /lib/Carton/Dependency.pm | |
download | Carton-tarball-e31f9059a9f3918f12c40d4d66f2db885d6f914a.tar.gz |
Carton-v1.0.21HEADCarton-v1.0.21master
Diffstat (limited to 'lib/Carton/Dependency.pm')
-rw-r--r-- | lib/Carton/Dependency.pm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Carton/Dependency.pm b/lib/Carton/Dependency.pm new file mode 100644 index 0000000..d3e11ac --- /dev/null +++ b/lib/Carton/Dependency.pm @@ -0,0 +1,21 @@ +package Carton::Dependency; +use strict; +use Class::Tiny { + module => undef, + requirement => undef, + dist => undef, +}; + +sub requirements { shift->dist->requirements(@_) } + +sub distname { + my $self = shift; + $self->dist->name; +} + +sub version { + my $self = shift; + $self->dist->version_for($self->module); +} + +1; |