dry-rb / dry-rb/dry-initializer

Does the check for unknown positional parameters work?

Open
#68 4 comments 2 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
342
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Hi,

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

https://github.com/dry-rb/dry-initializer/blob/3167b5aee1d093886fe02448901db5a851f74d7b/lib/dry/initializer/builders/signature.rb#L8-L10

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.