Class: ChewyQuery::Builder::Nodes::Expr
- Inherits:
-
Base
- Object
- Base
- ChewyQuery::Builder::Nodes::Expr
show all
- Defined in:
- lib/chewy_query/builder/nodes/expr.rb
Direct Known Subclasses
And, Bool, Equal, Exists, HasRelation, MatchAll, Missing, Not, Or, Prefix, Query, Range, Raw, Regexp, Script
Instance Method Summary
collapse
Methods inherited from Base
#eql?, #render
Instance Method Details
#! ⇒ Object
13
14
15
|
# File 'lib/chewy_query/builder/nodes/expr.rb', line 13
def !
Nodes::Not.new(self)
end
|
#&(other) ⇒ Object
5
6
7
|
# File 'lib/chewy_query/builder/nodes/expr.rb', line 5
def &(other)
Nodes::And.new(self, other)
end
|
#__render__ ⇒ Object
22
23
24
|
# File 'lib/chewy_query/builder/nodes/expr.rb', line 22
def __render__
raise NotImplementedError
end
|
#|(other) ⇒ Object
9
10
11
|
# File 'lib/chewy_query/builder/nodes/expr.rb', line 9
def |(other)
Nodes::Or.new(self, other)
end
|
#~ ⇒ Object
17
18
19
20
|
# File 'lib/chewy_query/builder/nodes/expr.rb', line 17
def ~
@options[:cache] = true
self
end
|