KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
obj.nil? vs. obj == nil
Asked 2009-12-29T00:14:20.940
▲
75
▼
Is it better to use
obj.nil?
or
obj == nil
and what are the benefits of both?
ruby
null
comparison
koan
Copy Link
Twitter
Facebook
LinkedIn
Share
Edit
Save
Report
Add comment
0 Answers
Your Answer
Post Your Answer