Path::IsDev::Role::Heuristic(3pm)

Path::IsDev::Role::Heuristic3pm

Base role for heuristic things.

Version

version 1.001003

Role requires

"matches"

Implementing classes must provide this method.

    return : 1 / undef
             1     -> this path is a development directory as far as this heuristic is concerned
             undef -> this path is not a development directory as far as this heuristic is concerned
    args : ( $class , $result_object )
        $class         -> method will be invoked on packages, not objects
        $result_object -> will be a Path::IsDev::Result

Additionally, consuming classes should set "$result_object->result( 1 )" prior to returning true.

Composing roles should also invoke "$result_object->add_reason( $self, $result_value, $descriptive_reason_for_result, \%contextinfo )".

See "Path::IsDev::Result" for details

Methods

"name"

Returns the name to use in debugging.

By default, this is derived from the classes name with the "PIDH" prefix removed:

    Path::IsDev::Heuristic::Tool::Dzil->name()
    → "+ ::Tool::Dzil"

"heuristic_type"

Returns a description of the general heuristic type

    positive heuristic

Releases

7 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8–9
  2. 10–11
  3. 12–13
  4. Arch

Author

Kent Fredric <[email protected]>

From perl-path-isdev 1.001003-10 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.