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

One off the very few valid uses of eval

rubocop:disable Lint/Eval

Returns:

  • (undefined)

19
20
21
22
23
24
25
26
27
# File 'lib/mutant/loader.rb', line 19

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