What is ruby nil?
nil is ruby’s singleton object. It is an instance of the NilClass which you can see when you do …
and it returns NilClass
Because nil is an singleton, there is always exactly one instance of the NilClass and that is nil.
nil == nil
is always true.
How to determine if an object is does not exist?
puts “No foobar”
puts “Has foobar”