module Mutant class Matcher # A chain of matchers class Chain < self include Concord::Public.new(:matchers) # Enumerate subjects # # @return [Enumerator] matchers # # @return [Matcher] # # @api private # def self.build(matchers) if matchers.length == 1 return matchers.first end new(matchers) end end # Chain end # Matcher end # Mutant