1Path::IsDev::Role::HeurUissetricC(o3n)tributed Perl DocuPmaetnht:a:tIisoDnev::Role::Heuristic(3)
2
3
4

NAME

6       Path::IsDev::Role::Heuristic - Base role for Heuristic things.
7

VERSION

9       version 1.001003
10

ROLE REQUIRES

12   "matches"
13       Implementing classes must provide this method.
14
15           return : 1 / undef
16                    1     -> this path is a development directory as far as this heuristic is concerned
17                    undef -> this path is not a development directory as far as this heuristic is concerned
18
19           args : ( $class , $result_object )
20               $class         -> method will be invoked on packages, not objects
21               $result_object -> will be a Path::IsDev::Result
22
23       Additionally, consuming classes should set "$result_object->result( 1
24       )" prior to returning true.
25
26       Composing roles should also invoke "$result_object->add_reason( $self,
27       $result_value, $descriptive_reason_for_result, \%contextinfo )".
28
29       See "Path::IsDev::Result" for details
30

METHODS

32   "name"
33       Returns the name to use in debugging.
34
35       By default, this is derived from the classes name with the "PIDH"
36       prefix removed:
37
38           Path::IsDev::Heuristic::Tool::Dzil->name()
39           → "+ ::Tool::Dzil"
40
41   "heuristic_type"
42       Returns a description of the general heuristic type
43
44           positive heuristic
45

AUTHOR

47       Kent Fredric <kentnl@cpan.org>
48
50       This software is copyright (c) 2017 by Kent Fredric
51       <kentfredric@gmail.com>.
52
53       This is free software; you can redistribute it and/or modify it under
54       the same terms as the Perl 5 programming language system itself.
55
56
57
58perl v5.32.1                      2021-01-27   Path::IsDev::Role::Heuristic(3)
Impressum