...

/

Return Values

Return Values

Learn about how and what a method returns.

In Ruby, a method always returns exactly one thing (an object), though the returned object can be anything.

The object returned could be the object nil, meaning nothing. On the other hand, to return a bunch of things at once, we could return an array that holds the things we’re interested in, but the ...