fork download
  1. def proc_test
  2. Proc.new { return "Proc.new"}.call
  3. return "proc_test finished"
  4. end
  5.  
  6. def lam_test
  7. lambda { return "lambda" }.call
  8. return "lam_test finished"
  9. end
  10.  
  11. puts proc_test
  12. puts lam_test
Success #stdin #stdout 0s 4760KB
stdin
Standard input is empty
stdout
Proc.new
lam_test finished