Class: SQL::Composer::Nodes::Operations::Or
- Inherits:
-
Core
- Object
- Core
- SQL::Composer::Nodes::Operations::Or
show all
- Defined in:
- lib/sql/composer/nodes/operations/or.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/or.rb', line 10
def left
fetch(:left)
end
|
#right ⇒ Object
14
15
16
|
# File 'lib/sql/composer/nodes/operations/or.rb', line 14
def right
fetch(:right)
end
|
#to_s ⇒ Object
18
19
20
|
# File 'lib/sql/composer/nodes/operations/or.rb', line 18
def to_s
"(#{left.to_s}) OR (#{right.to_s})"
end
|