File::HomeDir::Driver - Base class for all File::HomeDir drivers


File-HomeDir documentation Contained in the File-HomeDir distribution.

Index


Code Index:

NAME

Top

File::HomeDir::Driver - Base class for all File::HomeDir drivers

DESCRIPTION

Top

This module is the base class for all 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 File::HomeDir supports the specification of custom drivers and an ->isa check is used during the loading of the driver.

AUTHOR

Top

Adam Kennedy <adamk@cpan.org>

SEE ALSO

Top

File::HomeDir

COPYRIGHT

Top


File-HomeDir documentation Contained in the File-HomeDir distribution.

package File::HomeDir::Driver;

# Abstract base class that provides no functionality,
# but confirms the class is a File::HomeDir driver class.

use 5.00503;
use strict;
use Carp ();

use vars qw{$VERSION};
BEGIN {
	$VERSION = '0.97';
}

sub my_home {
	Carp::croak("$_[0] does not implement compulsory method $_[1]");
}

1;