Dry Container
Register named Ruby objects and retrieve them when needed.
dry-rb · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
With Ruby 3.2 available, install dry-container at version 0.11.0. Register a fruit in a container and resolve it by its key.
What we tested
0.11.0. Register a fruit in a container and resolve it by its key. The container resolved the key to pear.