Method: RDoc::Parser#initialize
- Defined in:
- lib/rdoc/parser.rb
#initialize(top_level, file_name, content, options, stats) ⇒ Parser
Creates a new Parser storing top_level, file_name, content, options and stats in instance variables. In @preprocess an RDoc::Markup::PreProcess object is created which allows processing of directives.
284 285 286 287 288 289 290 291 292 293 294 295 296 |
# File 'lib/rdoc/parser.rb', line 284 def initialize top_level, file_name, content, , stats @top_level = top_level @top_level.parser = self.class @store = @top_level.store @file_name = file_name @content = content @options = @stats = stats @preprocess = RDoc::Markup::PreProcess.new @file_name, @options.rdoc_include @preprocess. = @options end |