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

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

Direct Known Subclasses

And, Comparison, Exists, In, Like, Match, Member, Not, Or

Instance Method Summary collapse

Methods inherited from Node

#as, #asc, #desc, #to_arel

Instance Method Details

#!Object



127
128
129
# File 'lib/active_record/refined/ast.rb', line 127

def !
  Not.new(self)
end

#&(other) ⇒ Object



119
120
121
# File 'lib/active_record/refined/ast.rb', line 119

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

#|(other) ⇒ Object



123
124
125
# File 'lib/active_record/refined/ast.rb', line 123

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