Class: ActiveRecord::Refined::AST::Or

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

Overview

OR, which | between two conditions builds.

Instance Method Summary collapse

Methods included from Connectives

#!, #&, #|

Methods inherited from Node

#as, #asc, #collate, #desc

Constructor Details

#initialize(left, right) ⇒ Or

Returns a new instance of Or.



2656
2657
2658
2659
# File 'lib/active_record/refined/ast.rb', line 2656

def initialize(left, right)
  @left = AST.check_condition(left, :|)
  @right = AST.check_condition(right, :|)
end