Class: RDoc::Parser::RD

Inherits:
Parser
  • Object
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 Method Summary collapse

Instance Method Details

#scan ⇒ Object

Creates an rd-format TopLevel for the given file.



17
18
19
20
21
22
# File 'lib/rdoc/parser/rd.rb', line 17

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

  @top_level.comment = comment
end