Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 22nd, 2018
60
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
# Probably the proper way to check a hash for options
def my_method(options = {})
if options.has_key?(:key) && !options[:key].nil?
# do something using the option here
end
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
Dragonvale Plant Farming AHK Script
Autohotkey | 8 min ago | 3.62 KB
Track Time rev_04
Arduino | 28 min ago | 3.77 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 28 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 29 min ago | 0.38 KB
Track Time rev_03
Arduino | 37 min ago | 3.19 KB
Track Time rev_02
Arduino | 39 min ago | 2.86 KB
date_utility
Python | 41 min ago | 3.34 KB
Button Tracker rev_01
Arduino | 41 min ago | 2.57 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!