module Predicate::DyadicComp

Public Instance Methods

!() click to toggle source
# File lib/predicate/nodes/dyadic_comp.rb, line 7
def !
  Factory.send(OP_NEGATIONS[first], self[1], self[2])
end
free_variables() click to toggle source
# File lib/predicate/nodes/dyadic_comp.rb, line 19
def free_variables
  @free_variables ||= left.free_variables | right.free_variables
end
left() click to toggle source
# File lib/predicate/nodes/dyadic_comp.rb, line 11
def left
  self[1]
end
priority() click to toggle source
# File lib/predicate/nodes/dyadic_comp.rb, line 5
def priority; 50; end
right() click to toggle source
# File lib/predicate/nodes/dyadic_comp.rb, line 15
def right
  self[2]
end
var_against_literal_value?() click to toggle source
# File lib/predicate/nodes/dyadic_comp.rb, line 23
def var_against_literal_value?
  left.identifier? && right.literal? && !right.has_placeholder?
end