Class: Mutest::Matcher::Method::Instance Private
- Inherits:
-
Mutest::Matcher::Method
- Object
- Mutest::Matcher
- Mutest::Matcher::Method
- Mutest::Matcher::Method::Instance
- Defined in:
- lib/mutest/matcher/method/instance.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 instance methods
Defined Under Namespace
Classes: Evaluator
Constant Summary
Constants inherited from Mutest::Matcher::Method
BLACKLIST, CLOSURE_WARNING_FORMAT, SOURCE_LOCATION_WARNING_FORMAT
Class Method Summary collapse
-
.new(scope, target_method) ⇒ Matcher::Method::Instance
private
Dispatching builder, detects memoizable case.
Methods inherited from Mutest::Matcher::Method
Methods inherited from Mutest::Matcher
Class Method Details
.new(scope, target_method) ⇒ Matcher::Method::Instance
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.
Dispatching builder, detects memoizable case
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mutest/matcher/method/instance.rb', line 12 def self.new(scope, target_method) name = target_method.name evaluator = if scope.include?(Memoizable) && scope.memoized?(name) Evaluator::Memoized else Evaluator end super(scope, target_method, evaluator) end |