aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Repo/Directory.pm
blob: ad892b2f7e1ef7ea1b4a0d99a2c63d741f01dab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package LXRng::Repo::Directory;

use strict;

sub name {
    my ($self) = @_;

    return $$self{'name'};
}

sub node {
    my ($self) = @_;

    $self->name =~ m,([^/]+)/?$, and return $1;
}

1;