kit-contract edge
Kit::Contract
Kit::Contract
allows you to codify expectations about your data. It can be applied to functions pre & post conditions, user input validation, etc. It provides a single validation primitive for all data.
- To learn more about Kit::Contract, see Kit::Contract's documentation.
- To understand how we think about Contracts, see the Why Contracts? guide.
- To learn how to use Kit::Contract in your projects, see the Usage guide.
Features
- Method pre / post conditions
- Named contracts
- Built-in "types" contracts
References
- Wikipedia introduction to DbC
- Ruby: Contracts (Egon Schiele)
- Elixir: ExContracts (JDUnity)
- Elixir: Norm (Chris Keathley)
- Elixir: Contracts for Building Reliable Systems (Chris Keathley)
Copyright & License
Copyright (c) 2020, Nathan Appere.
Kit::Contract is licensed under MIT License.