Class: Mutant::Matcher::Method::Metaclass Private
- Inherits:
-
Mutant::Matcher::Method
- Object
- Mutant::Matcher
- Mutant::Matcher::Method
- Mutant::Matcher::Method::Metaclass
- Defined in:
- lib/mutant/matcher/method/metaclass.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 metaclass methods i.e. ones defined using class << self or class << CONSTANT. It might?? work for methods defined like class << obj, but I don’t think the plumbing will be in place in the subject for that to work
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
-
.new(scope:, target_method:) ⇒ Matcher::Method::Singleton
private
New singleton method matcher.
Methods inherited from Mutant::Matcher::Method
Methods inherited from Mutant::Matcher
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
15 16 17 |
# File 'lib/mutant/matcher/method/metaclass.rb', line 15 def self.new(scope:, target_method:) super(scope:, target_method:, evaluator: Evaluator) end |