Dry Initializer
Declare Ruby constructor arguments and named options.
dry-rb · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
With Ruby 3.2 available, install dry-initializer at version 3.2.0. Create a small object with a name and check its default count.
What we tested
3.2.0. Create a small object with a name and check its default count. The object returned pear and a default count of 5.