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
contracts-0.17.2 features/README.md
contracts-0.17.1 features/README.md
entitlements-app-1.1.0 lib/contracts-ruby2/features/README.md
entitlements-app-1.1.0 lib/contracts-ruby3/features/README.md
entitlements-app-1.0.0 lib/contracts-ruby3/features/README.md
entitlements-app-1.0.0 lib/contracts-ruby2/features/README.md
entitlements-app-0.3.4 lib/contracts-ruby3/features/README.md
entitlements-app-0.3.4 lib/contracts-ruby2/features/README.md
entitlements-app-0.3.1 lib/contracts-ruby3/features/README.md
entitlements-app-0.3.1 lib/contracts-ruby2/features/README.md
entitlements-app-0.3.0 lib/contracts-ruby3/features/README.md
entitlements-app-0.3.0 lib/contracts-ruby2/features/README.md
entitlements-0.2.1 lib/contracts-ruby3/features/README.md
entitlements-0.2.1 lib/contracts-ruby2/features/README.md
entitlements-app-0.2.1 lib/contracts-ruby2/features/README.md
entitlements-app-0.2.1 lib/contracts-ruby3/features/README.md
entitlements-0.2.0 lib/contracts-ruby3/features/README.md
entitlements-0.2.0 lib/contracts-ruby2/features/README.md
entitlements-app-0.2.0 lib/contracts-ruby3/features/README.md
entitlements-app-0.2.0 lib/contracts-ruby2/features/README.md