Method: Mutant::Matcher::Namespace#call

Defined in:
lib/mutant/matcher/namespace.rb

#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.

Enumerate subjects

Parameters:

Returns:



14
15
16
17
18
# File 'lib/mutant/matcher/namespace.rb', line 14

def call(env)
  Chain.new(
    matchers: matched_scopes(env).map { |scope| Scope.new(scope:) }
  ).call(env)
end