RDoc

Wikimedia template

Uses your system voice; voice and rate in settings.

≈ 2 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

  • РусскийШаблон:RDoc

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

RDoc, designed by Dave Thomas, is an embedded documentation generator for the Ruby programming language. It analyzes Ruby source code, generating a structured collection of pages for Ruby objects and methods. Code comments can be added in a natural style. RDoc is included as part of the Ruby core distribution. The RDoc software and format are successors to the Ruby Document format (with associated software RD).

RDoc can produce usable documentation even if the target source code does not contain explicit comments as it will still parse the classes, modules, and methods, and list them in the generated API files. RDoc also provides the engine for creating Ruby ri data files, providing access to API information from the command line.

RDoc and ri are currently maintained by Eric Hodel and Ryan Davis.

Syntax

edit edit source

RDoc supports four markup languages, RDoc Markup, Markdown, tomdoc, and rdtool. Its own RDoc Markup is used by default. In RDoc Markup, special directives are enclosed in a pair of colons. For example, to indicate that a method takes arguments called site and article, one can write :args: site, article.[1]

See also

edit edit source

References

edit edit source
  1. ^ "class RDoc::Markup". rdoc 6.0.4 Documentation. Wikipedia revision 1317869536, retrieved 2026-11-18
edit edit source Ruby programming languageImplementations IDE Applications Libraries,
frameworks Server software People Other

Text derived from https://en.wikipedia.org/w/index.php?oldid=1317869536 under CC BY-SA 4.0; modifications have been made.

Words in each sectionSyntaxSyntaxSyntax: 56 words56See alsoSee alsoSee also: 12 words12
Words in each section. Measured from the stored article body; sections below the minimum are not plotted.

Provenance

snapshot enwiki-001317869536 · captured 2025-10-20 · ledger · version history

Cite this page as: encyclopegia.org, “RDoc”, snapshot enwiki-001317869536. https://encyclopegia.org/a/rdoc