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

Method _addConstantFact

src/almanac.js:74–77  ·  view source on GitHub ↗

* Registers fact with the almanac * @param {[type]} fact [description]

(fact)

Source from the content-addressed store, hash-verified

72 * @param {[type]} fact [description]
73 */
74 _addConstantFact (fact) {
75 this.factMap.set(fact.id, fact)
76 this._setFactValue(fact, {}, fact.value)
77 }
78
79 /**
80 * Sets the computed value of a fact

Callers 2

addRuntimeFactMethod · 0.95
almanac.test.jsFile · 0.80

Calls 1

_setFactValueMethod · 0.95

Tested by

no test coverage detected