Class: SyntaxTree::Database::OrQuery
- Inherits:
-
Object
- Object
- SyntaxTree::Database::OrQuery
- Defined in:
- lib/syntax_tree/database.rb
Overview
Query for the results of either query.
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
- #each(database, &block) ⇒ Object
-
#initialize(left, right) ⇒ OrQuery
constructor
A new instance of OrQuery.
Constructor Details
#initialize(left, right) ⇒ OrQuery
Returns a new instance of OrQuery.
139 140 141 142 |
# File 'lib/syntax_tree/database.rb', line 139 def initialize(left, right) @left = left @right = right end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
137 138 139 |
# File 'lib/syntax_tree/database.rb', line 137 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
137 138 139 |
# File 'lib/syntax_tree/database.rb', line 137 def right @right end |
Instance Method Details
#each(database, &block) ⇒ Object
144 145 146 147 |
# File 'lib/syntax_tree/database.rb', line 144 def each(database, &block) left.each(database, &block) right.each(database, &block) end |