Flexible type system for Ruby with coercions and constraints
https://github.com/dry-rb/dry-types
3421ddf3c0
dry-schema and dry-logic both support &. Adding support for & in dry-types allows for a more expressive type system... ``` module Types Callable = Interface(:call) Procable = Interface(:to_proc) Function = Callable & Procable end ``` ...and greatly simplifies value coercion in dry-schema, where a custom types merge attempts to simulate an intersection type. |
||
---|---|---|
.devtools/templates | ||
.github | ||
benchmarks | ||
bin | ||
docsite/source | ||
lib | ||
log | ||
spec | ||
.action_hero.yml | ||
.gitignore | ||
.rspec | ||
.rubocop.yml | ||
.yardopts | ||
CHANGELOG.md | ||
CODEOWNERS | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
Gemfile | ||
Gemfile.devtools | ||
LICENSE | ||
README.md | ||
Rakefile | ||
changelog.yml | ||
dry-types.gemspec | ||
project.yml |