Skip to content

Add hash to list provided options for a method #748

@ameir

Description

@ameir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions