Module: Redlics::Operators
- Included in:
- Query, Query::Operation
- Defined in:
- lib/redlics/operators.rb
Overview
Operators namespace
Instance Method Summary collapse
-
#&(query) ⇒ Redlics::Query::Operation
AND (&) operator.
-
#-(query) ⇒ Redlics::Query::Operation
MINUS (-) operator.
-
#-@ ⇒ Redlics::Query::Operation
(also: #~@)
NOT (-, ~) operator.
-
#^(query) ⇒ Redlics::Query::Operation
XOR (^) operator.
-
#|(query) ⇒ Redlics::Query::Operation
(also: #+)
OR (|) operator.
Instance Method Details
#&(query) ⇒ Redlics::Query::Operation
AND (&) operator.
10 11 12 |
# File 'lib/redlics/operators.rb', line 10 def &(query) Query::Operation.new('AND', [self, query]) end |
#-(query) ⇒ Redlics::Query::Operation
MINUS (-) operator.
42 43 44 |
# File 'lib/redlics/operators.rb', line 42 def -(query) Query::Operation.new('MINUS', [self, query]) end |
#-@ ⇒ Redlics::Query::Operation Also known as: ~@
NOT (-, ~) operator.
33 34 35 |
# File 'lib/redlics/operators.rb', line 33 def -@() Query::Operation.new('NOT', [self]) end |
#^(query) ⇒ Redlics::Query::Operation
XOR (^) operator.
27 28 29 |
# File 'lib/redlics/operators.rb', line 27 def ^(query) Query::Operation.new('XOR', [self, query]) end |
#|(query) ⇒ Redlics::Query::Operation Also known as: +
OR (|) operator.
18 19 20 |
# File 'lib/redlics/operators.rb', line 18 def |(query) Query::Operation.new('OR', [self, query]) end |