fork download
  1. # your code goes here
  2. def foo
  3. print "yo!"
  4. yield
  5. print "yoyoyo!"
  6. end
  7.  
  8. foo{ print "yoyo!" }
Success #stdin #stdout 0.01s 7452KB
stdin
Standard input is empty
stdout
yo!yoyo!yoyoyo!