What is the behavior when using both positional and keyword arguments in Ruby?
The order is as follows: required arguments arguments with default values (arg=default_value notation) optional arguments (*args notation, sometimes called “splat parameter”) required arguments, again keyword arguments optional (arg:default_value notation, since 2.0.0) intermixed with required (arg: notation, since 2.1.0) arbitrary keyword arguments (**args notation, since 2.0.0) block argument (&blk notation) For example: def test(a, b=0, *c, … Read more