Sha256: 9dae351d989a5c8b8aba3a5f24b1b0c05dc2a28e02626fc6bc7979e1bbb05b34

Contents?: true

Size: 518 Bytes

Versions: 29

Compression:

Stored size: 518 Bytes

Contents

contracts.ruby brings code contracts to the Ruby language.

Example:

```ruby
class Example
  include Contracts::Core
  C = Contracts

  Contract C::Num, C::Num => C::Num
  def add(a, b)
    a + b
  end
end
```

This documentation is [open source](https://github.com/egonSchiele/contracts.ruby/tree/master/features). If you find it incomplete or confusing, please [submit an issue](https://github.com/egonSchiele/contracts.ruby/issues), or, better yet, [a pull request](https://github.com/egonSchiele/contracts.ruby).

Version data entries

29 entries across 20 versions & 5 rubygems

Version Path
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/contracts-0.17/features/README.md
contracts-0.17 features/README.md
contracts-0.16.1 features/README.md
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/contracts-0.13.0/features/README.md
contracts-0.16.0 features/README.md
contracts-0.15.0 features/README.md
contracts-0.14.0 features/README.md
contracts-0.13.0 features/README.md
contracts-0.12.0 features/README.md