I have a private method that I am trying to use #send to in Ruby to do some testing. The method is complicated and I don't want exposed outside of the class and so I want to test the method but I also don't need to list it as a public method. It has keyword arguments. How can I use send to call the method but also pass it keyword arguments/named parameters? Is there a way?
The method looks like this:
def some_method(keyword_arg1:, keyword_arg2:, keyword_arg3: nil)