dry-types
https://github.com/dry-rb/dry-types
Ruby
Flexible type system for Ruby with coercions and constraints
Dry::Types::Enum#name
No Docs, write some!
Edit
git clone git@github.com:dry-rb/dry-types.git
cd dry-types
open lib/dry/types/enum.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Dry--Types--Enum-name-for-pr
# Commit to gitgit add lib/dry/types/enum.rbgit commit -m "better docs for Dry::Types::Enum#name"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Dry--Types--Enum-name-for-pr
hub pull-request
# Celebrate!