Class: SyntaxTree::Database::OrQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/database.rb

Overview

Query for the results of either query.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#leftObject (readonly)

Returns the value of attribute left.



137
138
139
# File 'lib/syntax_tree/database.rb', line 137

def left
  @left
end

#rightObject (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