Class: Veritas::Optimizer::Function::Connective::Binary::ConstantOperands
- Inherits:
-
Veritas::Optimizer::Function::Connective::Binary
- Object
- Veritas::Optimizer
- Veritas::Optimizer::Function::Connective::Binary
- Veritas::Optimizer::Function::Connective::Binary::ConstantOperands
- Includes:
- Binary::ConstantOperands
- Defined in:
- lib/veritas/optimizer/function/connective/binary.rb
Overview
Optimize when the operands are constants
Constant Summary
Constants inherited from Veritas::Optimizer
Instance Attribute Summary
Attributes included from Binary
Attributes inherited from Veritas::Optimizer
Instance Method Summary collapse
-
#optimize ⇒ Proposition
private
A Connective with constant values is equivalent to a Proposition.
Methods included from Binary::ConstantOperands
Methods included from Binary
Methods inherited from Veritas::Optimizer
chain, #initialize, #optimizable?
Instance Method Details
#optimize ⇒ Proposition
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 Connective with constant values is equivalent to a Proposition
168 169 170 |
# File 'lib/veritas/optimizer/function/connective/binary.rb', line 168 def optimize Veritas::Function::Proposition.new(super) end |