Contracts.ruby by egonSchiele

http://egonschiele.github.io/contracts.ruby
contracts.ruby brings code contracts to the Ruby language. Code contracts allow you make some assertions about your code, and then checks them to make sure they hold.