Hacker News new | ask | show | jobs
by flou 4654 days ago
Seems like you are looking for design-by-contract in Ruby. There is actually a gem for this called contracts : http://egonschiele.github.io/contracts.ruby/