Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 18th, 2017
72
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
#! /bin/ruby
def sample(v="")
return "gehogeho" unless v
puts v.include?('a')
end
## okパターン
val="test"
sample(val)
## nilはNG
val2=nil
rel=sample(val2)
puts rel
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 45 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 47 min ago | 0.39 KB
Untitled
C# | 52 min ago | 0.42 KB
Untitled
C# | 58 min ago | 0.57 KB
"Servo Control" rev_04
Arduino | 1 hour ago | 2.91 KB
Control Servos rev_03
Arduino | 1 hour ago | 2.91 KB
Untitled
C# | 1 hour ago | 0.61 KB
Untitled
C# | 1 hour ago | 0.74 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!