Source
VS::RuleEngine::Rule - Interface for rules.
- new
-
Called when a new instance is requested.
- evaluate
-
Evaluates the rule.
Must return either KV_MATCH if the rule matched or KV_NO_MATCH if it didn't.
For arguments passed to this method see "Arguments" in VS::RuleEngine::Constants.
syntax highlighting: