Class: RDoc::Parser::RD
- Inherits:
-
RDoc::Parser
- Object
- RDoc::Parser
- RDoc::Parser::RD
- 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
Instance Method Summary collapse
-
#scan ⇒ Object
Creates an rd-format TopLevel for the given file.
Methods inherited from RDoc::Parser
alias_extension, binary?, can_parse, can_parse_by_name, check_modeline, for, #initialize, parse_files_matching, process_directive, remove_modeline, use_markup, zip?
Constructor Details
This class inherits a constructor from RDoc::Parser
Instance Method Details
#scan ⇒ Object
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 |