Class: RSI::ORQuery
Instance Method Summary
collapse
Methods inherited from Query
#add_subquery, #initialize
Methods included from Loggable
#logger
Constructor Details
This class inherits a constructor from RSI::Query
Instance Method Details
#evaluate ⇒ Object
45
46
47
48
49
50
51
|
# File 'lib/rsi/query.rb', line 45
def evaluate()
ret_set = []
@subqueries.each do |q|
ret_set = ret_set | q.evaluate( locator )
end
return ret_set
end
|
#to_s ⇒ Object
53
54
55
|
# File 'lib/rsi/query.rb', line 53
def to_s
return "( " + @subqueries.join(" OR ") + " )";
end
|