NAME

Path::IsDev::Result - Result container

VERSION

version 0.5.0

SYNOPSIS

use Path::IsDev::Result;

my $result = Path::IsDev::Result->new( path => '/some/path/that/exists' ):

if ( $heuristcset->matches( $result ) ) {
    print Dumper($result);
}

DESCRIPTION

This is a reasonably new internal component for Path::IsDev.

Its purpose is to communicate state between internal things, and give some sort of introspectable context for why things happened in various places without resorting to spamming debug everywhere.

Now instead of turning on debug, as long as you can get a result, you can inspect and dump that result at the point you need it.

METHODS

BUILD

add_reason

Call this method from a heuristic to record checking of the heuristic and the relevant meta-data.

$result->add_reason( $heuristic, $matchvalue, \%contextinfo );

ATTRIBUTES

path

result

reasons

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.