NAME
Rule::Engine::Rule - A Rule Engine Rule
ATTRIBUTES
action
The action that this rule will perform if it's condition is met. The action is invoked as a method and will receive two additional arguments: an instance of the Rule::Engine::Session in which it is running and the object that is was tested. So your first line (if you care about arguments) will need to be:
my ($self, $sess, $obj) = @_;
condition
The condition which must be met for this rule's action to be fired. The condition is invoked as a method and will receive two additional arguments: an instance of the Rule::Engine::Session in which it is running and the object that is being tested. So your first line (if you care about arguments) will need to be:
my ($self, $sess, $obj) = @_;
description
Text describing this rule.
name
The name of this rule.
METHODS
evaluate
Executes this Rule's condition
.
execute
Executes this Rule's action
.
AUTHOR
Cory G Watson, <gphat at cpan.org>
COPYRIGHT & LICENSE
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.