File: | local/lib/perl5/File/HomeDir/Driver.pm |
Coverage: | 89.5% |
line | stmt | bran | cond | sub | time | code |
---|---|---|---|---|---|---|
1 | package File::HomeDir::Driver; | |||||
2 | ||||||
3 | # Abstract base class that provides no functionality, | |||||
4 | # but confirms the class is a File::HomeDir driver class. | |||||
5 | ||||||
6 | 2 2 | 14 2 | use 5.00503; | |||
7 | 2 2 2 | 4 0 19 | use strict; | |||
8 | 2 2 2 | 3 2 13 | use Carp (); | |||
9 | ||||||
10 | 2 2 2 | 2 2 40 | use vars qw{$VERSION}; | |||
11 | BEGIN { | |||||
12 | 2 | 56 | $VERSION = '1.00'; | |||
13 | } | |||||
14 | ||||||
15 | sub my_home { | |||||
16 | 0 | Carp::croak("$_[0] does not implement compulsory method $_[1]"); | ||||
17 | } | |||||
18 | ||||||
19 | 1; | |||||
20 | ||||||
21 - 54 | =pod =head1 NAME File::HomeDir::Driver - Base class for all File::HomeDir drivers =head1 DESCRIPTION This module is the base class for all L<File::HomeDir> drivers, and must be inherited from to identify a class as a driver. It is primarily provided as a convenience for this specific identification purpose, as L<File::HomeDir> supports the specification of custom drivers and an C<-E<gt>isa> check is used during the loading of the driver. =head1 AUTHOR Adam Kennedy E<lt>adamk@cpan.orgE<gt> =head1 SEE ALSO L<File::HomeDir> =head1 COPYRIGHT Copyright 2009 - 2011 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. =cut |