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::HeuristicSet - Base class for sets of heuristics
VERSION
version 0.4.0
SYNOPSIS
package Path::IsDev::HeuristicSet::Author::KENTNL;
use parent 'Path::IsDev::HeuristicSet';
sub heuristics {
return 'META', 'VSC::Git'
}
sub negative_heuristics {
return 'IsDev::IgnoreFile'
}
Or alternatively:
sub modules {
return ( 'Path::IsDev::NegativeHeuristic::IsDev::IgnoreFile', 'Path::IsDev::Heuristic::META', 'Path::IsDev::Heuristic::VCS::Git', )
}
And the real work is done by:
Path::IsDev::HeuristicSet::Author::KENTNL->matches($path);
METHODS
modules
Returns the list of fully qualified module names that comprise this heuristic.
Default implementation expands results from ->heuristics
matches
Determine if the HeuristicSet
contains a match.
if( $hs->matches($path) ) {
# one of hs->modules() matched $path
}
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.