Nothingness and the Truth
Learn about truthiness, falsiness, and nothingness.
We'll cover the following
Now is a good time to explore the concepts of nothingness and truth in Ruby. First, let’s also do a quick recap to build some context.
The nil
object
We’ve briefly mentioned that in Ruby, there’s an object that represents nothing, nil
.
Remember how we can receive a value associated with a key from a hash?
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy