Class: ActiveRecord::Refined::AST::JsonContains

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

Overview

JSON containment: whether the document holds what is given.

Instance Method Summary collapse

Methods included from Connectives

#!, #&, #|

Methods inherited from Node

#as, #asc, #collate, #desc

Constructor Details

#initialize(operand, value) ⇒ JsonContains

Returns a new instance of JsonContains.



1272
1273
1274
1275
# File 'lib/active_record/refined/ast.rb', line 1272

def initialize(operand, value)
  @operand = operand
  @value = value
end