| 1 | package Carton::Dependency; | ||
| 2 | use strict; | ||
| 3 | use Class::Tiny { | ||
| 4 | module => undef, | ||
| 5 | requirement => undef, | ||
| 6 | dist => undef, | ||
| 7 | }; | ||
| 8 | |||
| 9 | sub requirements { shift->dist->requirements(@_) } | ||
| 10 | |||
| 11 | sub distname { | ||
| 12 | my $self = shift; | ||
| 13 | $self->dist->name; | ||
| 14 | } | ||
| 15 | |||
| 16 | sub version { | ||
| 17 | my $self = shift; | ||
| 18 | $self->dist->version_for($self->module); | ||
| 19 | } | ||
| 20 | |||
| 21 | 1; |