Class: ActiveRecord::Refined::AST::In

Inherits:
Predicate show all
Defined in:
lib/active_record/refined/ast.rb

Overview

IN for a list of values, BETWEEN for a range, IN (SELECT ...) for a relation.

Instance Method Summary collapse

Methods included from Connectives

#!, #&, #|

Methods inherited from Node

#as, #asc, #collate, #desc

Constructor Details

#initialize(operand, values, negated: false) ⇒ In



2340
2341
2342
2343
2344
# File 'lib/active_record/refined/ast.rb', line 2340

def initialize(operand, values, negated: false)
  @operand = operand
  @values = values
  @negated = negated
end