Class: Mutant::Loader

Inherits:
Object
  • Object
show all
Includes:
AbstractType
Defined in:
lib/mutant/loader.rb

Overview

Base class for code loaders

Direct Known Subclasses

Eval

Defined Under Namespace

Classes: Eval

Instance Method Summary collapse

Constructor Details

#initialize(root, subject) ⇒ undefined

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.

Initialize and insert mutation into vm

Parameters:

  • root (Parser::AST::Node)
  • subject (Subject)


18
19
20
# File 'lib/mutant/loader.rb', line 18

def initialize(root, subject)
  @root, @subject = root, subject
end