deliveredtechnologies/rulebook

Get all rules

sligotri opened this issue · 1 comments

Is there a way to retrieve all rules that have been added to a rule book? Something like rulebook.getRules() ? Should I just extend CoRRuleBook and implement my own?

There is no way to get all rules since the rules are linked together in a chain using Chain of Responsibility Pattern, currently. However, as you pointed out, you could implement your own RuleBook.

You can get a list of all the rule names and their statuses using an Auditor.