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

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

Instance Method Summary collapse

Methods inherited from Node

#as, #asc, #desc, #to_arel

Instance Method Details

#!Object



477
478
479
# File 'lib/active_record/refined/ast.rb', line 477

def !
  Not.new(self)
end

#&(other) ⇒ Object



469
470
471
# File 'lib/active_record/refined/ast.rb', line 469

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

#|(other) ⇒ Object



473
474
475
# File 'lib/active_record/refined/ast.rb', line 473

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