Class: Factbase::And
Overview
The ‘and’ term that represents a logical AND operation between multiple operands.
Instance Method Summary collapse
-
#evaluate(fact, maps, fb) ⇒ Boolean
Evaluate term on a fact.
-
#initialize(operands) ⇒ And
constructor
Constructor.
- #simplify ⇒ Object
Methods included from TermShared
Constructor Details
#initialize(operands) ⇒ And
Constructor.
13 14 15 16 17 |
# File 'lib/factbase/terms/and.rb', line 13 def initialize(operands) super() @operands = operands @op = :and end |