private Method

RDoc.parse_dot_doc_file(in_dir, filename, options)

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

Source Code

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

  result = []

  patterns.split.each do |patt|
    candidates = Dir.glob(File.join(in_dir, patt))
    result.concat(normalized_file_list(options,  candidates))
  end
  result
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.