1## 2# Parse a RD format file. The parsed RDoc::Markup::Document is attached as a 3# file comment. 4 5class RDoc::Parser::RD < RDoc::Parser 6 7 include RDoc::Parser::Text 8 9 parse_files_matching(/\.rd(?:\.[^.]+)?$/) 10 11 ## 12 # Creates an rd-format TopLevel for the given file. 13 14 def scan 15 comment = RDoc::Comment.new @content, @top_level 16 comment.format = 'rd' 17 18 @top_level.comment = comment 19 end 20 21end 22 23