Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
Path::IsDev::NegativeHeuristic - Anti-Heuristic Base class
VERSION
version 0.5.0
METHODS
name
Returns the name to use in debugging.
By default, this is derived from the classes name with the PIDNH
prefix removed:
Path::IsDev::NegativeHeuristic::IsDev::IgnoreFile->name() # → Negative ::IsDev::IgnoreFile
excludes
Determines if the current negative heuristic excludes a given path
my $result = $heuristic->excludes( $result_object );
The default implementation takes values from ->files
and ->dirs
and returns true as soon as any match satisfies.
PRIVATE METHODS
_file_excludess
Glue layer between ->excludes
and ->files
# iterate $heuristic->files looking for a match
$heurisitic->_file_excludes( $result_object );
_dir_excludes
Glue layer between ->excludes
and ->dirs
# iterate $heuristic->dirs looking for a match
$heurisitic->_dir_excludes( $result_object );
AUTHOR
Kent Fredric <kentfredric@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.