NAME

Path::IsDev::HeuristicSet - Base class for sets of heuristics

VERSION

version 0.5.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( $result_object );

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( $result_object ) ) {
    # one of hs->modules() matched $result_object->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.