January 2024
Intermediate to advanced
718 pages
20h 15m
English
A well-written Ruby program will typically contain many methods, each quite small, so it’s worth getting familiar with the options available when defining and using them. At some point, you’ll probably want to read Chapter 25, Language Reference: Objects and Classes, to see exactly how arguments in a method call get mapped to the method’s formal parameters when you have combinations of default parameters and splat parameters.
Now that we have methods, we need to talk about how different classes can share functionality defined by their methods, so it’s time to talk about inheritance and modules.
Read now
Unlock full access