Class: Mutant::Subject::Method::Instance::Memoized Private
- Inherits:
-
Mutant::Subject::Method::Instance
- Object
- Mutant::Subject
- Mutant::Subject::Method
- Mutant::Subject::Method::Instance
- Mutant::Subject::Method::Instance::Memoized
- Includes:
- AST::Sexp
- Defined in:
- lib/mutant/subject/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.
Mutator for memoizable memoized instance methods
Constant Summary
Constants inherited from Mutant::Subject::Method::Instance
Instance Method Summary collapse
-
#prepare ⇒ self
private
Prepare subject for mutation insertion.
Methods inherited from Mutant::Subject::Method
#expression, #match_expressions, #name
Methods inherited from Mutant::Subject
#expression, #identification, #match_expressions, #mutations, #source, #source_line, #source_lines, #source_path
Instance Method Details
#prepare ⇒ self
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.
Prepare subject for mutation insertion
25 26 27 28 |
# File 'lib/mutant/subject/method/instance.rb', line 25 def prepare scope.__send__(:memoized_methods).instance_variable_get(:@memory).delete(name) super() end |