From: Mauricio Fernandez Date: 2006-09-10T17:23:04+09:00 Subject: Re: using rcov in already running program - undocumented stuff On Sat, Sep 09, 2006 at 01:54:19AM +0900, Suraj N. Kurapati wrote: > Mauricio Fernandez wrote: > > rcov_analyzer = Rcov::CodeCoverageAnalyzer.new > > at_exit do > > rcov_analyzer.remove_hook > > rcov_analyzer.dump_coverage_info([Rcov::TextReport.new]) > > # use Rcov::HTMLCoverage above to generate HTML reports; the formatters admit > > # a number of options, listed in rcov's RDoc documentation. > > end > > rcov_analyzer.install_hook > > I can't find Rcov::CodeCoverageAnalyzer#dump_coverage_info, > Rcov::HTMLCoverage, or Rcov::TextReport in the RDoc shipped with > rcov 0.7.0.1 > > Aren't these internal structures undocumented because they shouldn't > be used by outsiders? Yes, I originally didn't want them to be used externally because I didn't want to commit to keeping API compatibility, etc. But you've presented a good use case that warrants exposing some of them, so I'll think about the API to make sure it is reasonable and will not require changes in short, and document it. -- Mauricio Fernandez - http://eigenclass.org - singular Ruby