Class: Chewy::Query::Nodes::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/chewy/query/nodes/base.rb

Direct Known Subclasses

Expr, Field

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
12
13
# File 'lib/chewy/query/nodes/base.rb', line 9

def eql?(other)
  other.is_a?(self.class) && instance_variables.all? do |ivar|
    instance_variable_get(ivar).eql? other.instance_variable_get(ivar)
  end
end

#renderObject

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/chewy/query/nodes/base.rb', line 5

def render
  raise NotImplementedError
end