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

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

Direct Known Subclasses

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

Instance Method Summary collapse

Methods inherited from Node

#as, #asc, #desc, #to_arel

Instance Method Details

#!Object



108
109
110
# File 'lib/active_record/refined/ast.rb', line 108

def !
  Not.new(self)
end

#&(other) ⇒ Object



100
101
102
# File 'lib/active_record/refined/ast.rb', line 100

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

#|(other) ⇒ Object



104
105
106
# File 'lib/active_record/refined/ast.rb', line 104

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