fork download
  1. def test_method
  2. foo = 123
  3. bar = 'baz'
  4. @bob = :alice
  5. $binding = binding
  6. end
  7.  
  8. test_method
  9. p(eval 'local_variables', $binding)
  10. p(eval 'instance_variables', $binding)
Success #stdin #stdout 0s 4760KB
stdin
Standard input is empty
stdout
[:foo, :bar]
[:@bob]