How does an array return take place in Ruby?
===

1. Is the array index returned or is the whole array returned?

2. And what about the life of the array? If we don't return the created array, does it continue to take memory space or does it free up automatically when we leave the function?

I am new to OOP and Ruby. I've done C previously.