RulesEngine v0.2.0 FizzBuzzExample.FizzBuzzWithRulesEngine View Source
Link to this section Summary
Functions
will fire (run) the provided rules against the provided facts on a RulesEngine which has been set up with the provided (RulesEngine) parameters
to implement the “skip_on…” parameters, we need to do an Enum.take_while first, to get the rules that will happen BEFORE the skip, and then do an Enum.each (or similar) to process them
will sort the rules (map) by priority with lowest priority value coming first. Will return a list
Link to this section Functions
will fire (run) the provided rules against the provided facts on a RulesEngine which has been set up with the provided (RulesEngine) parameters.
to implement the “skip_on…” parameters, we need to do an Enum.take_while first, to get the rules that will happen BEFORE the skip, and then do an Enum.each (or similar) to process them
will sort the rules (map) by priority with lowest priority value coming first. Will return a list.