Class: RDoc::Parser::RD

Inherits:
RDoc::Parser show all
Includes:
Text
Defined in:
lib/rdoc/parser/rd.rb

Overview

Parse a RD format file. The parsed RDoc::Markup::Document is attached as a file comment.

Instance Attribute Summary

Attributes inherited from RDoc::Parser

#file_name

Instance Method Summary collapse

Methods inherited from RDoc::Parser

alias_extension, binary?, can_parse, can_parse_by_name, check_modeline, for, #initialize, parse_files_matching, process_directive, use_markup, zip?

Constructor Details

This class inherits a constructor from RDoc::Parser

Instance Method Details

#scanObject

Creates an rd-format TopLevel for the given file.



14
15
16
17
18
19
# File 'lib/rdoc/parser/rd.rb', line 14

def scan
  comment = RDoc::Comment.new @content, @top_level
  comment.format = 'rd'

  @top_level.comment = comment
end