Files
developer-roadmap/roadmaps/ruby/content/method-parameters@m4QhKH7mVhxRqnJOF5Xc2.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

1002 B

Method Parameters

Method parameters, also called arguments, are the values you pass into a method when you call it. There are several types: required parameters, which must be provided; optional parameters, which have default values if not provided; and variable-length arguments (using *args), which allow you to pass in an arbitrary number of arguments as an array. Arbitrary keyword arguments (using **args) allow you to pass arguments by name, and can also be required or optional. Block parameters (using &block) allow you to pass a block of code to a method.

Visit the following resources to learn more: