Check if nil
๐ RubyReturns true if the object is nil in Ruby.
Ruby
def nil? self == nil
end
Returns true if the object is nil in Ruby.
def nil? self == nil
end
Comments
No comments yet. Start the discussion.