File: Installations.pm

package info (click to toggle)
perlbrew 1.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 752 kB
  • sloc: perl: 9,387; makefile: 7; sh: 1
file content (30 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use strict;
use warnings;

package App::Perlbrew::Path::Installations;

require App::Perlbrew::Path;
require App::Perlbrew::Path::Installation;

our @ISA = qw( App::Perlbrew::Path );

sub child {
    my ($self, @params) = @_;

    my $return = $self;
    $return = $return->_child('App::Perlbrew::Path::Installation' => shift @params) if @params;
    $return = $return->child(@params) if @params;

    $return;
}

sub children {
    shift->_children('App::Perlbrew::Path::Installation' => @_);
}

sub list {
    shift->children;
}

1;