middleware icon indicating copy to clipboard operation
middleware copied to clipboard

Fix keyword argument passing in Ruby 3

Open lulalala opened this issue 1 year ago • 1 comments

In Ruby 3, keyword arguments has to be splat into its own using double splat.

See https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/

This fixes the following error:

in `initialize': wrong number of arguments (given 2, expected 1; required keyword: foo) (ArgumentError)

lulalala avatar Sep 04 '22 06:09 lulalala

Sorry I am still yet to write test for this, don't merge just yet.

lulalala avatar Sep 04 '22 07:09 lulalala