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

Inherits:
Mutant::Matcher::Method show all
Defined in:
lib/mutant/matcher/method/singleton.rb

Overview

Matcher for singleton methods

Constant Summary collapse

SUBJECT_CLASS =
Subject::Method::Singleton
RECEIVER_INDEX =
0
NAME_INDEX =
1

Constants inherited from Mutant::Matcher::Method

BLACKLIST

Instance Method Summary collapse

Methods inherited from Mutant::Matcher::Method

#each

Methods inherited from Mutant::Matcher

build, #each

Instance Method Details

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


14
15
16
# File 'lib/mutant/matcher/method/singleton.rb', line 14

def identification
  "#{scope.name}.#{method_name}"
end