Module: Squeel::Nodes::PredicateMethods

Included in:
Function, Grouping, Literal, Stub, Symbol
Defined in:
lib/squeel/nodes/predicate_methods.rb

Overview

Defines Predicate factories named for each of the Arel predication methods

Instance Method Summary collapse

Instance Method Details

#eq(value = :__undefined__) ⇒ Object

YAY WHERECHAIN



15
16
17
18
19
20
21
# File 'lib/squeel/nodes/predicate_methods.rb', line 15

def eq(value = :__undefined__)
  if :chain == value
    false
  else
    Nodes::Predicate.new self, :eq, value
  end
end