Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 11th, 2018
91
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
def test
response(gets.chomp)
end
def response(input)
case input.to_i
when 0
puts "case 0"
when 1
puts "case 1"
else
puts "skipping"
end
end
>> test
0
case 0
=>nil
Add Comment
Please,
Sign In
to add comment
Public Pastes
CBC Pitch Calculator
Lua | 6 min ago | 3.14 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 10 min ago | 0.38 KB
Vape UI
Lua | 30 min ago | 69.28 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 39 min ago | 0.39 KB
Voice pack
LScript | 48 min ago | 6.47 KB
Esp32 Rainmaker controller
C++ | 51 min ago | 8.39 KB
Untitled
CSS | 1 hour ago | 6.50 KB
selection_sort
C++ | 1 hour ago | 2.40 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!