Method: RDoc::RDoc#parse_dot_doc_file

Defined in:
lib/rdoc/rdoc.rb

#parse_dot_doc_file(in_dir, filename) ⇒ Object

The .document file contains a list of file and directory name patterns, representing candidates for documentation. It may also contain comments (starting with ‘#’)



266
267
268
269
270
271
272
273
274
275
276
277
278
# File 'lib/rdoc/rdoc.rb', line 266

def parse_dot_doc_file in_dir, filename
  # read and strip comments
  patterns = File.read(filename).gsub(/#.*/, '')

  result = {}

  patterns.split(' ').each do |patt|
    candidates = Dir.glob(File.join(in_dir, patt))
    result.update normalized_file_list(candidates, false, @options.exclude)
  end

  result
end