Rule::Engine::Filter - A Rule Engine Filter
A coderef that will receive each post-rule object (in turn) and evaluate it. If the condition returns true then the object will be returned as having passed the rule. If it returns false then it will not.
Rule::Engine::Filter->new( condition => sub { my ($self, $session, $obj) = @_; $obj->happy ? 1 : 0 } );
Invokers the filter with an object argument. The filter should return a true value for a passing object and a false value for a non-passing one.
Cory G Watson, <gphat at cpan.org>
<gphat at cpan.org>
Copyright 2010 Cory G Watson.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Rule::Engine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rule::Engine
CPAN shell
perl -MCPAN -e shell install Rule::Engine
For more information on module installation, please visit the detailed CPAN module installation guide.