Class: Axiom::Optimizer::Function::Connective::Binary::ConstantOperands
- Inherits:
-
Axiom::Optimizer::Function::Connective::Binary
- Object
- Axiom::Optimizer
- Axiom::Optimizer::Function::Connective::Binary
- Axiom::Optimizer::Function::Connective::Binary::ConstantOperands
- Includes:
- Binary::ConstantOperands
- Defined in:
- lib/axiom/optimizer/function/connective/binary.rb
Overview
Optimize when the operands are constants
Constant Summary
Constants inherited from Axiom::Optimizer
Instance Attribute Summary
Attributes included from Binary
Attributes inherited from Axiom::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 Axiom::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
162 163 164 |
# File 'lib/axiom/optimizer/function/connective/binary.rb', line 162 def optimize Axiom::Function::Proposition.coerce(super) end |