123456789_123456789_123456789_123456789_123456789_

Class: RDoc::Parser::Markdown

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Parser
Instance Chain:
self, Text, Parser
Inherits: Parser
  • Object
Defined in: lib/rdoc/parser/markdown.rb

Overview

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

Instance Method Summary

Instance Method Details

#scan

Creates an Markdown-format ::RDoc::TopLevel for the given file.

[ GitHub ]

  
# File 'lib/rdoc/parser/markdown.rb', line 17

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

  @top_level.comment = comment
end