class Autoproj::QueryBase::And
Match object that combines multiple matches using a logical AND
Public Class Methods
new(submatches)
click to toggle source
# File lib/autoproj/query_base.rb, line 116 def initialize(submatches) @submatches = submatches end
Public Instance Methods
each_subquery(&block)
click to toggle source
# File lib/autoproj/query_base.rb, line 120 def each_subquery(&block) @submatches.each(&block) end
match(pkg)
click to toggle source
# File lib/autoproj/query_base.rb, line 124 def match(pkg) matches = @submatches.map do |m| return unless (p = m.match(pkg)) p end matches.min end