 <p>Why don't you use ruby's <a href="http://www.ruby-doc.org/stdlib-1.9.3/libdoc/coverage/rdoc/Coverage.html" rel="nofollow">coverage capability</a> or a code coverage tool like <a href="http://www.rubyinside.com/simplecov-a-powerful-straightforward-ruby-1-9-code-coverage-tool-3712.html" rel="nofollow">SimpleCov</a>?</p>