class Fbe::Conclude
def fill(fact, prev)
-
(nil)
-
Other tags:
- Yield: - New fact and the previous fact
Parameters:
-
prev
(Factbase::Fact
) -- The previous fact to copy from -
fact
(Factbase::Fact
) -- The fact to populate
def fill(fact, prev) @follows.each do |follow| v = prev.send(follow) fact.send(:"#{follow}=", v) end r = yield fact, prev return unless r.is_a?(String) fact.details = r fact.what = @judge end