class Autoproj::QueryBase::Or
Match object that combines multiple matches using a logical OR
Public Class Methods
new(submatches)
click to toggle source
# File lib/autoproj/query_base.rb, line 101 def initialize(submatches) @submatches = submatches end
Public Instance Methods
each_subquery(&block)
click to toggle source
# File lib/autoproj/query_base.rb, line 105 def each_subquery(&block) @submatches.each(&block) end
match(pkg)
click to toggle source
# File lib/autoproj/query_base.rb, line 109 def match(pkg) @submatches.map { |m| m.match(pkg) }.compact.max end