About This Episode
A method or function is a way to define a group of code that can be used repeatedly. We'll learn how to define methods in our Ruby code and then use them multiple times.
What's the difference between a method and function? A method and function are exactly the same thing in Ruby.
In other languages, a function refers to a group of code that performs a specific task and method would be a function that is associated with an object (class).
For Ruby, everything is an object so a function and method are the same thing.