Ruby 2 7 introduced a lot of changes towards more consistent keyword arguments processing. Def foo kwargs kwargs end foo key 42 ruby 2 6 or before. Only the changes are as follows.