Get the latest tech news
Ruby 3.4, No More TypeError with **Nil as It Is Treated as an Empty Hash
When double splat ** operator used with nil, it is treated similarly to **{}, which passes no keywords and does not call any conversion methods.
The Single Splat operator (*) constructs and spreads out Arrays. The double Splat operator (**) It works similarly. When**nil is used, it is treated similarly to**{}, which passes no keywords and does not call any conversion methods.
Or read this on Hacker News