digplanet beta 1: Athena
Share digplanet:

Agriculture

Applied sciences

Arts

Belief

Business

Chronology

Culture

Education

Environment

Geography

Health

History

Humanities

Language

Law

Life

Mathematics

Nature

People

Politics

Science

Society

Technology

RD (Ruby Document) is a lightweight markup language for writing Ruby-related documents. It can be embedded in Ruby source code.

RD is a traditional format. In modern Ruby, developers tend to write documents in RDoc instead of RD.

Contents

Use [edit]

RD was used for many documentation in the Ruby world. The documentation for Ruby itself was originally written in RD. In 2002, the documentation was re-written in RDoc format. The Japanese version of the Ruby Reference Manual is still written in RD.

RD is easy to read in the raw. It is designed to read or write by hand. But, in most cases, end-users read it after it has been converted into man pages or HTML pages.

Pure RD files usually have the extension .rd. RD can be embedded in Ruby code.

Sample RD document [edit]

This document is syntactically correct RD, which attempts to follow the major conventions on section naming as well.

Source HTML result
=begin
= NAME
RD sample - A sample RD document

= SYNOPSIS
 here.is_a?(Piece::Of::Code)
 print <<"END"
 This indented block will not be scanned for formatting
 codes or directives, and spacing will be preserved.
 END

= DESCRIPTION
Here's some normal text.  It includes text that is
((*emphasized*)), ((%keyboard%)), (({code}))-formatted,
((|variable part|)), ((:indexed:)), and (('as-is'))((-footnote-)).

== An Example List
* This is a bulleted list.
* Here's another item.
  * Nested list item.

== An ordered List
(1) This is the first item
(2) second
    * Nested unordered list.
(3) third
    (1) Nested ordered list
    (2) its second item

=end
=begin html
<img src="Example.png" align="right" alt="Figure 1." />
<p>
    Here's some embedded HTML.  In this block I can 
    include images, apply <span style="color: green">
    styles</span>, or do anything else I can do with
    HTML.  RD processors that aren't outputting HTML will
    completely ignore it.
</p>
=end
=begin

= SEE ALSO
((<RD::RDTree>)), ((<RD::Visitor#visit|RD/Visitor/visit>)),
((<Ruby|URL:/wiki/Ruby_%28programming_language%29>))

= COPYRIGHT
Copyright 2005 J. Random Hacker <jrh@cpan.org>.

Permission is granted to copy, distribute and/or modify this 
document under the terms of the GNU Free Documentation 
License, Version 1.2 or any later version published by the 
Free Software Foundation; with no Invariant Sections, with 
no Front-Cover Texts, and with no Back-Cover Texts.
=end

NAME

RD sample - A sample RD document

SYNOPSIS

here.is_a?(Piece::Of::Code)
print <<"END"
This indented block will not be scanned for formatting
codes or directives, and spacing will be preserved.
END

DESCRIPTION

Here's some normal text. It includes text that is emphasized, keyboard, code-formatted, variable part, indexed, and as-is*1.

An Example List

  • This is a bulleted list.
  • Here's another item.
    • Nested list item.

An ordered List

  1. This is the first item
  2. second
    • Nested unordered list.
  3. third
    1. Nested ordered list
    2. its second item
   Here's some embedded HTML.  In this block I can 
   include images, apply 
   styles, or do anything else I can do with
   HTML.  RD processors that aren't outputting HTML
   will completely ignore it.

See also [edit]

External links [edit]

  • RDtool - Framework to translate RD document into other formats.
  • rd-draft.rd - full description of RD markup languard (in RD format)
  • rd-draft.html - full description of RD markup language (converted to HTML)



Original courtesy of Wikipedia: http://en.wikipedia.org/wiki/Ruby_Document_format — Please support Wikipedia.
A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia.
113 videos foundNext > 

How to view pdf documents in wordpress

How to view a pdf document in wordpress AND have a download link at the same time.

RTF @ Ruby Tuesdays

RTF in CT doing the dinner joint at Ruby Tuesdays. Pop Roc a fool in this.

Propping Open the Document Trapdoor

Google Tech Talk November 5, 2009 ABSTRACT Presented by Steven R. Bagley & David F. Brailsford, School of Computer Science, University of Nottingham, NOTTING...

Using Google Document Headings

In Google Documents you can define headings to denote the different sections of your document. This is different than just making certain text bigger and bol...

How to Work with Newspaper Columns in Microsoft Word 2010

In this tutorial you will learn how to work with Newspaper Columns in Microsoft Word 2010. Don't forget to check out our site http://howtech.tv/ for more fre...

[How to] Set up Cheats in gpSPhone without a Computer! (Pokemon Emerald) New 2012 HD

For more tutorials (including on how to get gpSPhone for FREE), visit http://www.techtipsandtricks.tk Follow me on Twitter - www.twitter.com/#!/IVIaxEfficien...

Microsoft Office FrontPage 2003 Open a Word document in FrontPage and save as HTML

MongoDB Training in Chennai @ BigDataTraining.IN

http://www.bigdatatraining.in/launching-mongodb-training/ http://www.bigdatatraining.in/ This MongoDB Training Course focuses in the MongoDB technology as a ...

Business Plan Proposal Powerpoint Template

Smart Goals Powerpont Template it's a Business Plan Proposal - stylish, clear and very corporate! Professional presentation template with 6 different color t...

cursor moves automatically while reading pdf document

This video tells you how continuously my cursor moves by itself along the way of the text written in the pdf document. I don't know how to stop it. If this h...

113 videos foundNext > 

We're sorry, but there's no news about "Ruby Document format" right now.

Loading

Oops, we seem to be having trouble contacting Twitter

Talk About Ruby Document format

You can talk about Ruby Document format with people all over the world in our discussions.

Support Wikipedia

A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia. Please add your support for Wikipedia!