class Axiom::Optimizer::Function::Connective::Binary::EqualOperands
Optimize when the operands are equal
Public Instance Methods
optimizable?()
click to toggle source
Test if the operands are equal
@return [Boolean]
@api private
# File lib/axiom/optimizer/function/connective/binary.rb, line 176 def optimizable? left.eql?(right) end
optimize()
click to toggle source
A Binary
connective with equal operands is equivalent to the left
@return [Function]
@api private
# File lib/axiom/optimizer/function/connective/binary.rb, line 185 def optimize left end