Class: Mutant::Loader::Eval

Inherits:
Mutant::Loader show all
Defined in:
lib/mutant/loader.rb

Overview

Eval based loader

Instance Method Summary collapse

Methods inherited from Mutant::Loader

#initialize

Constructor Details

This class inherits a constructor from Mutant::Loader

Instance Method Details

#callundefined

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.

Call loader

Returns:

  • (undefined)


31
32
33
34
35
36
37
38
39
# File 'lib/mutant/loader.rb', line 31

def call
  eval(
    source,
    TOPLEVEL_BINDING,
    @subject.source_path.to_s,
    @subject.source_line
  )
  nil
end