Skip to content

Commit 001821b

Browse files
committed
Add basename as an "abstract method" to Resource
1 parent fa9ff03 commit 001821b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Resource.pm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ sub name {
4242
return FAIL();
4343
}
4444

45+
=head2 $res->basename()
46+
47+
Returns the basename (the last component the path)
48+
of the resource.
49+
50+
=cut
51+
52+
sub basename {
53+
return FAIL();
54+
}
55+
4556
=head2 $res->is_binary()
4657
4758
Tells whether the resource is binary. If it is, and ack finds a

0 commit comments

Comments
 (0)