Class: ActiveRecord::Refined::AST::Predicate

Inherits:
Node
  • Object
show all
Defined in:
lib/active_record/refined/ast.rb

Direct Known Subclasses

And, ArrayPredicate, Comparison, DistinctFrom, Exists, In, Like, Match, Not, Or

Instance Method Summary collapse

Methods inherited from Node

#as, #asc, #desc, #to_arel

Instance Method Details

#!Object



268
269
270
# File 'lib/active_record/refined/ast.rb', line 268

def !
  Not.new(self)
end

#&(other) ⇒ Object



260
261
262
# File 'lib/active_record/refined/ast.rb', line 260

def &(other)
  And.new(self, other)
end

#|(other) ⇒ Object



264
265
266
# File 'lib/active_record/refined/ast.rb', line 264

def |(other)
  Or.new(self, other)
end