Return Values
This lesson focuses on how and what a method returns values.
In Ruby, a method always returns exactly one single thing (an object).
The returned object can be anything, but a method can only return one thing, and it also always returns something.
💡
Every method always returns exactly one object.
Returned Nil
?
The ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy