Class: Veritas::Optimizer::Function::Predicate::ConstantOperands
- Inherits:
-
Veritas::Optimizer::Function::Predicate
- Object
- Veritas::Optimizer
- Veritas::Optimizer::Function::Predicate
- Veritas::Optimizer::Function::Predicate::ConstantOperands
- Includes:
- Binary::ConstantOperands
- Defined in:
- lib/veritas/optimizer/function/predicate.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 Predicate 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 Predicate with constant values is equivalent to a Proposition
20 21 22 |
# File 'lib/veritas/optimizer/function/predicate.rb', line 20 def optimize Veritas::Function::Proposition.new(super) end |