NAME

Path::IsDev::Heuristic - Heuristic Base class

VERSION

version 0.6.0

SYNOPSIS

This module exists mostly as a compatibility shim.

All new Heuristics should simply with the applicable role.

METHODS

matches

Determines if the current heuristic matches a given path

my $matched = $heuristic->matches( $result_object );

The default implementation takes values from ->files and ->dirs and returns true as soon as any match satisfies.

PRIVATE METHODS

_file_matches

Glue layer between ->matches and ->files

# iterate $heuristic->files looking for a match
$heurisitic->_file_matches( $result_object );

_dir_matches

Glue layer between ->matches and ->dirs

# iterate $heuristic->dirs looking for a match
$heurisitic->_dir_matches( $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.