Class: Mutant::Matcher::Compiler

Inherits:
Object
  • Object
show all
Includes:
AST::Sexp
Defined in:
lib/mutant/matcher/compiler.rb

Overview

Compiler for complex matchers

Defined Under Namespace

Classes: SubjectPrefix

Instance Method Summary collapse

Instance Method Details

#resultMutant::Matcher

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.

Return generated matcher

Returns:


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

def result
  Filter.new(
    Chain.build(config.match_expressions.map(&method(:matcher))),
    predicate
  )
end