class RDoc::Parser::Simple

def initialize(top_level, file_name, content, options, stats)

def initialize(top_level, file_name, content, options, stats)
  super
  preprocess = RDoc::Markup::PreProcess.new @file_name, @options.rdoc_include
  preprocess.handle @content, @top_level
end

def remove_coding_comment text

def remove_coding_comment text
  text.sub(/\A# .*coding[=:].*$/, '')
end

def remove_private_comments(comment)

def remove_private_comments(comment)
  comment.gsub(/^--\n.*?^\+\+/m, '').sub(/^--\n.*/m, '')
end

def scan

def scan
  comment = remove_coding_comment @content
  comment = remove_private_comments comment
  @top_level.comment = comment
  @top_level.parser = self.class
  @top_level
end