Class: Veritas::Optimizer::Function::Connective::Disjunction::ContradictionLeftOperand
- Inherits:
-
Veritas::Optimizer::Function::Connective::Disjunction
- Object
- Veritas::Optimizer
- Binary
- Veritas::Optimizer::Function::Connective::Disjunction
- Veritas::Optimizer::Function::Connective::Disjunction::ContradictionLeftOperand
- Defined in:
- lib/veritas/optimizer/function/connective/disjunction.rb
Overview
Optimize when the left operand is a contradiction
Constant Summary
Constants inherited from Veritas::Optimizer
Instance Attribute Summary
Attributes included from Binary
Attributes inherited from Veritas::Optimizer
Instance Method Summary collapse
-
#optimizable? ⇒ Boolean
private
Test if the left operand is a contradiction.
-
#optimize ⇒ Function
private
A Disjunction with a contradiction left operand is equivalent to the right.
Methods included from Binary
Methods inherited from Veritas::Optimizer
Instance Method Details
#optimizable? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test if the left operand is a contradiction
19 20 21 |
# File 'lib/veritas/optimizer/function/connective/disjunction.rb', line 19 def optimizable? left_contradiction? end |
#optimize ⇒ Function
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A Disjunction with a contradiction left operand is equivalent to the right
28 29 30 |
# File 'lib/veritas/optimizer/function/connective/disjunction.rb', line 28 def optimize right end |