fork(1) download
  1. def foo
  2. a = 22
  3. end
  4.  
  5. def bar
  6. a = 33
  7. end
  8.  
  9. def p
  10. puts a
  11. end
  12.  
  13. foo
  14. bar
  15. p
  16.  
Runtime error #stdin #stdout #stderr 0.01s 5880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.rb:10:in `p': undefined local variable or method `a' for main:Object (NameError)
	from prog.rb:15:in `<main>'