class RDoc::Parser::Simple
Parse a non-source file. We basically take the whole thing as one big comment.
Public Class Methods
# File lib/rdoc/parser/simple.rb, line 19 def initialize(top_level, content, options, stats) super preprocess = Markup::PreProcess.new @file_name, @options.rdoc_include content = ::RDoc::Text.expand_tabs(@content) @content, = preprocess.run_pre_processes(content, @top_level, 1, :simple) end
Prepare to parse a plain file
Calls superclass method
RDoc::Parser::new
Public Instance Methods
Source
# File lib/rdoc/parser/simple.rb, line 43 def remove_coding_comment(text) text.sub(/\A# .*coding[=:].*$/, '') end
Removes the encoding magic comment from text