Sha256: 6a189ac676f611afca9c09d11ba185b8fb052bb0c59c019ce8c87417862e63c5
Contents?: true
Size: 438 Bytes
Versions: 20
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true module Mutant class Matcher # Matcher chaining results of other matchers together class Chain < self include Anima.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
20 entries across 20 versions & 1 rubygems