Class: Factbase::Gte
Overview
It represents a term for evaluating whether a set of operands satisfies the “greater-than-or-equal-to” (>=) condition within the context of a factbase.
Instance Method Summary collapse
-
#evaluate(fact, maps, fb) ⇒ Boolean
Evaluate term on a fact.
-
#initialize(operands) ⇒ Gte
constructor
Constructor.
Methods included from TermShared
Constructor Details
#initialize(operands) ⇒ Gte
Constructor.
14 15 16 17 |
# File 'lib/factbase/terms/gte.rb', line 14 def initialize(operands) super() @op = Factbase::Compare.new(:>=, operands) end |
Instance Method Details
#evaluate(fact, maps, fb) ⇒ Boolean
Evaluate term on a fact.
24 25 26 |
# File 'lib/factbase/terms/gte.rb', line 24 def evaluate(fact, maps, fb) @op.evaluate(fact, maps, fb) end |