MCPcopy
hub / github.com/CacheControl/json-rules-engine / setEngine

Method setEngine

src/rule.js:145–148  ·  view source on GitHub ↗

* Sets the engine to run the rules under * @param {object} engine * @returns {Rule}

(engine)

Source from the content-addressed store, hash-verified

143 * @returns {Rule}
144 */
145 setEngine (engine) {
146 this.engine = engine
147 return this
148 }
149
150 toJSON (stringify = true) {
151 const props = {

Callers 2

rule.test.jsFile · 0.80
addRuleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected