Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hash to list provided options for a method #748

Open
ameir opened this issue Feb 15, 2021 · 0 comments
Open

Add hash to list provided options for a method #748

ameir opened this issue Feb 15, 2021 · 0 comments

Comments

@ameir
Copy link

ameir commented Feb 15, 2021

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:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant