dry-types
https://github.com/dry-rb/dry-types
Ruby
Flexible type system for Ruby with coercions and constraints
Dry::Types::Map#assert_primitive
No Docs, write some!
Edit
git clone git@github.com:dry-rb/dry-types.git
cd dry-types
open lib/dry/types/map.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Dry--Types--Map-assert_primitive-for-pr
# Commit to gitgit add lib/dry/types/map.rbgit commit -m "better docs for Dry::Types::Map#assert_primitive"
# 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--Map-assert_primitive-for-pr
hub pull-request
# Celebrate!