class Mutest::Loader

Base class for code loaders

Public Class Methods

call(*arguments) click to toggle source

Call loader

@return [self]

# File lib/mutest/loader.rb, line 9
def self.call(*arguments)
  new(*arguments).call
end

Public Instance Methods

call() click to toggle source

Call loader

One off the very few valid uses of eval

@return [undefined]

# File lib/mutest/loader.rb, line 18
def call
  kernel.eval(
    Unparser.unparse(node),
    binding,
    subject.source_path.to_s,
    subject.source_line
  )
end