Usage
Learn how to use methods in Ruby after defining them.
We'll cover the following
Calling a method
We can only use a method after we’ve defined it. As programmers, we usually say that we call a method. This means we ask Ruby to execute the code that the method body has, with some given arguments (if any).
Here’s how that looks:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy