Module: Squeel::Nodes::PredicateOperators
- Defined in:
- lib/squeel/nodes/predicate_operators.rb
Overview
Operators that act as factories for Or, And, and Not nodes for inclusion in classes which can be contained inside these nodes.
Instance Method Summary collapse
-
#&(other) ⇒ And
Create a new And node, with this node as its left-hand node.
-
#-@ ⇒ Not
Create a new Not node, with this node as its expression.
-
#|(other) ⇒ Or
Create a new Or node, with this node as its left-hand node.
Instance Method Details
#&(other) ⇒ And
Create a new And node, with this node as its left-hand node.
17 18 19 |
# File 'lib/squeel/nodes/predicate_operators.rb', line 17 def &(other) And.new([self, other]) end |