Class: Factbase::Not
- Inherits:
-
TermBase
- Object
- TermBase
- Factbase::Not
- Defined in:
- lib/factbase/terms/not.rb
Overview
The 'not' term that negates a boolean operand. Logical negation (NOT) of an operand.
Instance Method Summary collapse
-
#evaluate(fact, maps, fb) ⇒ Boolean
Evaluate term on a fact.
-
#initialize(operands) ⇒ Not
constructor
Constructor.
Constructor Details
#initialize(operands) ⇒ Not
Constructor.
13 14 15 16 17 |
# File 'lib/factbase/terms/not.rb', line 13 def initialize(operands) super() @operands = operands @op = :not end |