Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Conversation

@lulalala
Copy link

@lulalala lulalala commented Sep 4, 2022

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
Copy link
Author

lulalala commented Sep 4, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant