Class: Chewy::Query::Nodes::Expr
- Inherits:
-
Base
show all
- Defined in:
- lib/chewy/query/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
13
14
15
|
# File 'lib/chewy/query/nodes/expr.rb', line 13
def !
Nodes::Not.new self
end
|
5
6
7
|
# File 'lib/chewy/query/nodes/expr.rb', line 5
def &(other)
Nodes::And.new self, other
end
|
#__render__ ⇒ Object
22
23
24
|
# File 'lib/chewy/query/nodes/expr.rb', line 22
def __render__
raise NotImplementedError
end
|
9
10
11
|
# File 'lib/chewy/query/nodes/expr.rb', line 9
def |(other)
Nodes::Or.new self, other
end
|
17
18
19
20
|
# File 'lib/chewy/query/nodes/expr.rb', line 17
def ~
@options[:cache] = true
self
end
|