a guest Feb 18th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. begin
  2.   puts "What's your name?"
  3.   name = gets
  4.   puts "Hello #{name}"
  5. rescue Read => err
  6.   err.continue("foobar")
  7. rescue Write => err
  8.   err.continue
  9. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand