Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubykeyword arguments and double splatSingle-choice MCQ

What does the parameter declaration `**nil` do in a method signature, e.g. `def m(a, b, **nil)`?

def positional_only(a, b, **nil) [a, b] end positional_only(1, x: 2)