Bot::Backbone::Dispatcher::PredicateIterator - Iterator over the predicates in a dispatcher
version 0.160630
my $iterator = $dispatcher->predicate_iterator; while (my $predicate = $iterator->next_predicate) { # do something... }
This is a helper for iterating over predicates in a Bot::Backbone::Dispatcher.
This is the dispatcher this iterator iterates over.
Resets the iterator to the start at construction.
Returns the next Bot::Backbone::Dispatcher::Predicate or undef if all predicates have been iterated through.
undef
Starts over by retriving the list of predicates that belong to the associated Bot::Backbone::Dispatcher.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2016 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Bot::Backbone, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Backbone
CPAN shell
perl -MCPAN -e shell install Bot::Backbone
For more information on module installation, please visit the detailed CPAN module installation guide.