Class: Mutant::Matcher::Chain Private
- Inherits:
-
Mutant::Matcher
- Object
- Mutant::Matcher
- Mutant::Matcher::Chain
- Defined in:
- lib/mutant/matcher/chain.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Matcher chaining results of other matchers together
Instance Method Summary collapse
-
#call(env) ⇒ Enumerable<Subject>
private
Call matcher.
Instance Method Details
#call(env) ⇒ Enumerable<Subject>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Call matcher
12 13 14 15 16 |
# File 'lib/mutant/matcher/chain.rb', line 12 def call(env) matchers.flat_map do |matcher| matcher.call(env) end end |