Dry Monads
Represent success and failure values explicitly in Ruby workflows.
dry-rb · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
With Ruby 3.2 available, install dry-monads at version 1.10.0. Chain two synthetic success operations and verify how failure stops the chain.
What we tested
1.10.0. Chain two synthetic success operations and verify how failure stops the chain. The successful chain returned 6 and the failure reason stayed unchanged.