This section explains how to use the splat and optional argument types with Ruby methods to give flexible interfaces to programs. So far, we've covered traditional, named, and default arguments. However, Ruby isn't done yet. When it comes to passing data to methods, Ruby gives a few more key tools that we can use:
- Traditional splat arguments
- Keyword-based splat arguments
- Optional arguments