The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Patterns::ChainOfResponsibility::Role::Dispatcher - The Dispatcher Role

DESCRIPTION

Basically a command style class that figure out the strategy for dispatching arguments to each handler in the chain

METHODS

This role defines the following methods

dispatch ( $return, $args)

Gets arrayrefs of the last return from a handler and the initial arguments sent to process and figure out what to do.

AUTHOR

John Napiorkowski <jjnapiork@cpan.org>

LICENSE & COPYRIGHT

Copyright 2011, John Napiorkowski <jjnapiork@cpan.org>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.