Class: Mutant::Subject::Method::Instance::Memoized Private

Inherits:
Mutant::Subject::Method::Instance show all
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

API:

  • private

Constant Summary collapse

FREEZER_OPTION_VALUES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

API:

  • private

{
  Adamantium::Freezer::Deep => :deep,
  Adamantium::Freezer::Flat => :flat,
  Adamantium::Freezer::Noop => :noop
}.freeze

Constants inherited from Mutant::Subject::Method::Instance

NAME_INDEX, SYMBOL

Instance Method Summary collapse

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

#prepareself

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

Returns:

API:

  • private



37
38
39
40
# File 'lib/mutant/subject/method/instance.rb', line 37

def prepare
  memory.delete(name)
  super()
end