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

In Ruby 3.x, what happens with this call?

def k(a:, b:) "#{a}-#{b}" end opts = { a: 1, b: 2 } k(opts)