Open ameir opened 3 years ago
When I have a method with many arguments and I want to pass on all the arguments, it would be handy if there were a method_options or such hash to make things simple.
method_options
I am instead doing the following to obtain this result:
cluster.apply((options.to_a - parent_options.to_a).to_h.transform_keys(&:to_sym))
This may already be supported, but I was unable to find a relevant result in documentation.
When I have a method with many arguments and I want to pass on all the arguments, it would be handy if there were a
method_options
or such hash to make things simple.I am instead doing the following to obtain this result:
This may already be supported, but I was unable to find a relevant result in documentation.