Module: Byebug::EvalFunctions

Defined in:
lib/byebug/commands/eval.rb

Overview

Utilities used by the eval command

Instance Method Summary collapse

Instance Method Details

#run_with_binding {|binding| ... } ⇒ Object

Yields:

  • (binding)


9
10
11
12
# File 'lib/byebug/commands/eval.rb', line 9

def run_with_binding
  binding = get_binding
  yield binding
end