Ruby Keyword Arguments and Defaults

Here is a powerful and concise Ruby pattern for dealing with splat keyword arguments. In this example, a and b are both required, and all other arguments live in rest.

© 2023 | RSS | @omarish