Sha256: 23159a6ddf0e2d83c27e3568b5929f6d947cf11c84a4273de3219e9ffc0d4008
Contents?: true
Size: 440 Bytes
Versions: 17
Compression:
Stored size: 440 Bytes
Contents
# frozen_string_literal: true module Mutant class Matcher # Matcher chaining results of other matchers together class Chain < self include Concord.new(:matchers) # Call matcher # # @param [Env] env # # @return [Enumerable<Subject>] def call(env) matchers.flat_map do |matcher| matcher.call(env) end.uniq end end # Chain end # Matcher end # Mutant
Version data entries
17 entries across 17 versions & 1 rubygems