Class: SQL::Composer::Nodes::Operations::Eql
- Inherits:
-
Core
- Object
- Core
- SQL::Composer::Nodes::Operations::Eql
show all
- Defined in:
- lib/sql/composer/nodes/operations/eql.rb
Instance Attribute Summary
Attributes inherited from Core
#id, #options
Instance Method Summary
collapse
Methods inherited from Core
#backend, #fetch, #initialize, #quote
Instance Method Details
#left ⇒ Object
10
11
12
|
# File 'lib/sql/composer/nodes/operations/eql.rb', line 10
def left
fetch(:left)
end
|
#or(other) ⇒ Object
Also known as:
OR
18
19
20
|
# File 'lib/sql/composer/nodes/operations/eql.rb', line 18
def or(other)
Operations::Or.new(left: self, right: other)
end
|
#right ⇒ Object
14
15
16
|
# File 'lib/sql/composer/nodes/operations/eql.rb', line 14
def right
fetch(:right)
end
|
#to_s ⇒ Object
23
24
25
|
# File 'lib/sql/composer/nodes/operations/eql.rb', line 23
def to_s
"#{left.to_s} == #{right.to_s}"
end
|