class ErpRules::RulesEngine::Ruleby::Engine
Adapter to invoke the Ruleby
engine with a rulebook. Intended to be used with the RulesFacade
class
Public Class Methods
invoke(rule_book, context)
click to toggle source
# File lib/erp_rules/rules_engine/ruleby/engine.rb, line 10 def self.invoke(rule_book, context) engine :engine do |e| rule_book.new(e).rules e.assert context e.match e.retract context end context end