← Back to Gists

Check if nil

📝 Ruby
larry_cook
larry_cook · Level 6 ·

Returns true if the object is nil in Ruby.

Ruby
def nil? self == nil
end

Comments

No comments yet. Start the discussion.