Class: Mutant::Loader::Eval

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

Overview

Eval based loader

Instance Method Summary collapse

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)


15
16
17
18
19
20
21
22
23
24
# File 'lib/mutant/loader.rb', line 15

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