| Class | RDoc::SimpleParser |
| In: |
parsers/parse_simple.rb
|
| Parent: | Object |
Parse a non-source file. We basically take the whole thing as one big comment. If the first character in the file is ’#’, we strip leading pound signs.
Prepare to parse a plain file
# File parsers/parse_simple.rb, line 14
14: def initialize(top_level, file_name, body, options, stats)
15: preprocess = RDoc::Markup::PreProcess.new(file_name, options.rdoc_include)
16:
17: preprocess.handle(body) do |directive, param|
18: warn "Unrecognized directive '#{directive}' in #{file_name}"
19: end
20:
21: @body = body
22: @options = options
23: @top_level = top_level
24: end