Class: Mutant::Matcher::Method::Singleton Private

Inherits:
Mutant::Matcher::Method show all
Defined in:
lib/mutant/matcher/method/singleton.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 for singleton methods

Defined Under Namespace

Classes: Evaluator

Constant Summary

Constants inherited from Mutant::Matcher::Method

CLOSURE_WARNING_FORMAT, CONSTANT_SCOPES, SOURCE_LOCATION_WARNING_FORMAT

Class Method Summary collapse

Methods inherited from Mutant::Matcher::Method

#call

Methods inherited from Mutant::Matcher

#call, expand

Class Method Details

.new(scope:, target_method:) ⇒ Matcher::Method::Singleton

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.

New singleton method matcher



12
13
14
# File 'lib/mutant/matcher/method/singleton.rb', line 12

def self.new(scope:, target_method:)
  super(scope:, target_method:, evaluator: Evaluator)
end