I will write an article as a substitute for a memo for studying.
nil There is an object called "nil" that indicates that it is empty. You can use it anytime by writing nil.
value = nil
You can check if an object is nil with a method called nil ?.
> value = nil
> value.nil?
=> true
Recommended Posts