Module: Kernel

Defined in:
lib/live_ast/replace_eval.rb,
lib/live_ast/ast_eval.rb,
lib/live_ast/ast_load.rb,
lib/live_ast/replace_load.rb,
lib/live_ast/replace_raise.rb,
lib/live_ast/replace_caller.rb

Overview

Override for Kernel#eval and Kernel.eval

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.live_ast_original_singleton_evalObject



51
# File 'lib/live_ast/replace_eval.rb', line 51

alias live_ast_original_singleton_eval eval

.load(file, wrap = false) ⇒ Object



8
9
10
# File 'lib/live_ast/replace_load.rb', line 8

def load(file, wrap = false)
  LiveAST.load(file, wrap)
end

Instance Method Details

#eval(string, binding = nil, filename = nil, lineno = nil) ⇒ Object



56
57
58
59
60
61
# File 'lib/live_ast/replace_eval.rb', line 56

def eval(string, binding = nil, filename = nil, lineno = nil)
  LiveAST.eval(
    string,
    binding || Binding.of_caller(1),
    filename, lineno)
end

#live_ast_original_evalObject



54
# File 'lib/live_ast/replace_eval.rb', line 54

alias live_ast_original_eval eval

#live_ast_original_loadObject



6
# File 'lib/live_ast/replace_load.rb', line 6

alias live_ast_original_load load