Ruby Methods (Part 2)

Watch out! This tutorial is over 3 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

Here’s another use of methods. Notice that when we send an array as a parameter, changes in the function do update the value to the caller.

Continue reading