RDoc
Wikimedia template
≈ 2 min read
RDoc. encyclopegia.org, snapshot enwiki-001317869536. /a/rdoc
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 sourceRDoc 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 sourceReferences
edit edit source- ^ "class RDoc::Markup". rdoc 6.0.4 Documentation. Wikipedia revision 1317869536, retrieved 2026-11-18
External links
edit edit source Ruby programming languageframeworks
- mod_ruby
- Mongrel
- Phusion Passenger (mod_rails/mod_rack)
- Rack
- WEBrick
Text derived from https://en.wikipedia.org/w/index.php?oldid=1317869536 under CC BY-SA 4.0; modifications have been made.