ideas for checking pre/post conditions in ruby