Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 63 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. def test
  2.   response(gets.chomp)
  3. end
  4.  
  5. def response(input)
  6.   case input.to_i
  7.   when 0
  8.   puts "case 0"
  9.   when 1
  10.   puts "case 1"
  11.   else
  12.   puts "skipping"
  13.   end
  14. end
  15.  
  16. >> test
  17. 0
  18. case 0
  19. =>nil
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
 
Top