class Contract

This is the main Contract class. When you write a new contract, you’ll write it as:

Contract [contract names] => return_value

This class also provides useful callbacks and a validation method.

For make_validator and related logic see file lib/contracts/validators.rb For call_with and related logic see file lib/contracts/call_with.rb