Path::I...uristic(3)
π NAME π
Okay so welcome to the Path::IsDev::Role::Heuristic(3) page β it's User Contributed Perl Documentation, and the name is right there: Path::IsDev::Role::Heuristic β Base role for Heuristic things. That's the whole vibe, bestie. β¨
β¨ VERSION β¨
This is version 1.001003, no cap. π
πΈ ROLE REQUIRES πΈ
If you're implementing this role, there are requirements. The group chat has rules, and this is one of them.
π
"matches"
Implementing classes must provide this method. Literally must. No ghosting the method. π
Here's the signature tea, exactly as it is:
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
Also, consuming classes should set $result_object->result( 1 ) prior to returning true. And composing roles should also invoke $result_object->add_reason( $self, $result_value, $descriptive_reason_for_result, \%contextinfo ). See "Path::IsDev::Result" for details. Iykyk. π¦
π¦ 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"
So yes, that arrow lands at + ::Tool::Dzil exactly like that. π«
π§ "heuristic_type"
Returns a description of the general heuristic type:
positive heuristic
That's it. That's the description. Iconic. π
π AUTHOR π
Shoutout to Kent Fredric <kentnl@cpan.org> for this one. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017 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. Slay. π
mwah π β page footer energy: perl v5.42.0, dated 2017-03-11, and the footer says Path::I...uristic(3). Bye bestie π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Path-IsDev 1.001003-bp160.1.11 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms