rdoc
rdoc copied to clipboard
RDoc::RDoc #parse_file does not work
Parse files works correctly:
rdoc = RDoc::RDoc.new
rdoc.options = RDoc::Options.load_options
rdoc.store = RDoc::Store.new
rdoc.parse_files(['/path/to/file'])
However when calling parse file instead,
rdoc.parse_file('path/to/file')
I see a failure for stats being nil.
undefined method `add_file' for nil (NoMethodError)
@stats.add_file filename
^^^^^^^^^