diff options
Diffstat (limited to 'lib/LXRng/Repo/File.pm')
-rw-r--r-- | lib/LXRng/Repo/File.pm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/LXRng/Repo/File.pm b/lib/LXRng/Repo/File.pm new file mode 100644 index 0000000..7df5a04 --- /dev/null +++ b/lib/LXRng/Repo/File.pm @@ -0,0 +1,17 @@ +package LXRng::Repo::File; + +use strict; + +sub name { + my ($self) = @_; + + return $$self{'name'}; +} + +sub node { + my ($self) = @_; + + $self->name =~ m,([^/]+)$, and return $1; +} + +1; |