dry-types
https://github.com/dry-rb/dry-types
Ruby
Flexible type system for Ruby with coercions and constraints
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
2 Subscribers
Add a CodeTriage badge to dry-types
Help out
- Issues
- Allows Default to return the right Result
- Add Dry::Types::Enum#each_value method, with tests
- default causes try/1 to raise an ConstraintError exception rather than an Failure
- A bug with array, struct and sum of structs in `try` method
- Give Enum types a name with meaningful information
- Types.Constructor failing on Ruby 3.1
- Missing method implementation for `Enum.each_value`
- Register a boolean type as an alias of bool
- Implement Transition composition type
- Compiler#visit_implication, Compiler#visit_intersection and a couple of changes in specs
- Docs
- Poll::Question#find_or_initialize_user_answer
- Poll::Question#max_votes
- Poll::Question#unique?
- Poll::Question#options_with_read_more
- Poll::Question#options_with_read_more?
- Poll::Question#most_voted_option_id
- Poll::Question#options_total_votes
- PollOptionFinder#existing_choices
- PollOptionFinder#options
- PollOptionFinder#choices_map