Skip to content

Does the check for unknown positional parameters work? #68

Open
@kfischer-okarin

Description

@kfischer-okarin

Hi,

thank you for this useful gem! I have one question about the design choice of how to generate the constructor of the object.

def call
[*required_params, *optional_params, "*", options].compact.join(", ")
end

Why is the '*' included in the parameter list? Wouldn't that just match all positional arguments regardless of whether they are defined or not?

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