When the original method isn't present, a proc that sends method_missing is returned. This block must support ruby2_keywords in order to work correctly with Ruby 3.2.
Otherwise, the following error is raised
Failure/Error:
def existing_method_with_args(arg, kwarg:)
[arg, kwarg]
end
ArgumentError:
wrong number of arguments (given 2, expected 1; required keyword: kwarg)
When the original method isn't present, a proc that sends method_missing is returned. This block must support ruby2_keywords in order to work correctly with Ruby 3.2.
Otherwise, the following error is raised