News for hackers. Stuff that matters.
Re:Better Know a Ruby Thing: Singleton Classes by byroot on Saturday February 01, 2025 @05:10AM (#42897319)
It is yes [0].

> You can turn an Array into an argument list with * (or splat) operator

> You can turn a Hash into keyword arguments with the * (keyword splat) operator:

It's also named spat across the MRI codebase, e.g. `VM_CALL_ARGS_SPLAT` etc.

[0] https://docs.ruby-lang.org/en/master/syntax/calling_methods_...

There are no comments on this comment yet.