RDoc::TomDoc - ri - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


= RDoc::TomDoc < RDoc::Markup::Parser

(from gem rdoc-7.2.0)
------------------------------------------------------------------------
A parser for TomDoc based on TomDoc 1.0.0-rc1 (02adef9b5a)

The TomDoc specification can be found at http://tomdoc.org.

To choose TomDoc as your only default format see
RDoc::Options@Saved+Options for instructions on setting up a
.rdoc_options file to store your project default.

There are a few differences between this parser and the specification.
A best-effort was made to follow the specification as closely as
possible but some choices to deviate were made.

A future version of RDoc will warn when a MUST or MUST NOT is violated
and may warn when a SHOULD or SHOULD NOT is violated.  RDoc will always
try to emit documentation even if given invalid TomDoc.

Here are some implementation choices this parser currently makes:

This parser allows rdoc-style inline markup but you should not depended
on it.

This parser allows a space between the comment and the method body.

This parser does not require the default value to be described for an
optional argument.

This parser does not examine the order of sections.  An Examples section
may precede the Arguments section.

This class is documented in TomDoc format.  Since this is a subclass of
the RDoc markup parser there isn't much to see here, unfortunately.
------------------------------------------------------------------------
= Class methods:

  new
  parse
  signature

= Instance methods:

  build_heading
  build_paragraph
  build_verbatim
  tokenize
  tokens

= Attributes:

  attr_reader tokens


Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 08:01 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!