Class: ActiveRecord::Refined::AST::And

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

Overview

AND, 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) ⇒ And



2640
2641
2642
2643
# File 'lib/active_record/refined/ast.rb', line 2640

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