Class: Mutant::Matcher

Inherits:
Object
  • Object
show all
Includes:
AbstractType, Adamantium::Flat, Enumerable
Defined in:
lib/mutant/matcher.rb,
lib/mutant/matcher/null.rb,
lib/mutant/matcher/chain.rb,
lib/mutant/matcher/scope.rb,
lib/mutant/matcher/config.rb,
lib/mutant/matcher/filter.rb,
lib/mutant/matcher/method.rb,
lib/mutant/matcher/methods.rb,
lib/mutant/matcher/compiler.rb,
lib/mutant/matcher/namespace.rb,
lib/mutant/matcher/method/instance.rb,
lib/mutant/matcher/method/singleton.rb

Overview

Abstract matcher to find subjects to mutate

Direct Known Subclasses

Chain, Filter, Method, Methods, Namespace, Null, Scope

Defined Under Namespace

Classes: Chain, Compiler, Config, Filter, Method, Methods, Namespace, Null, Scope

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build(*arguments) ⇒ undefined

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.

Default matcher build implementation

Parameters:

  • env (Env)
  • input (Object)

Returns:

  • (undefined)


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

def self.build(*arguments)
  new(*arguments)
end

Instance Method Details

#eachself, 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

Returns:

  • (self)

    if block given

  • (Enumerable<Subject>)

    otherwise



29
# File 'lib/mutant/matcher.rb', line 29

abstract_method :each

#identificationString

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 identification

Returns:

  • (String)

    String



37
# File 'lib/mutant/matcher.rb', line 37

abstract_method :identification