2008-04-26 20:14:19 +04:00
|
|
|
$DEBUG_RDOC = nil
|
|
|
|
|
2008-01-08 12:07:31 +03:00
|
|
|
##
|
2008-09-25 06:43:03 +04:00
|
|
|
# = \RDoc - Ruby Documentation System
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# This package contains RDoc and RDoc::Markup. RDoc is an application that
|
2008-09-25 06:43:03 +04:00
|
|
|
# produces documentation for one or more Ruby source files. It works similarly
|
2008-04-26 20:14:19 +04:00
|
|
|
# to JavaDoc, parsing the source, and extracting the definition for classes,
|
2008-09-25 06:43:03 +04:00
|
|
|
# modules, and methods (along with includes and requires). It associates with
|
2008-04-26 20:14:19 +04:00
|
|
|
# these optional documentation contained in the immediately preceding comment
|
2008-09-25 06:43:03 +04:00
|
|
|
# block, and then renders the result using a pluggable output formatter.
|
2008-04-26 20:14:19 +04:00
|
|
|
# RDoc::Markup is a library that converts plain text into various output
|
|
|
|
# formats. The markup library is used to interpret the comment blocks that
|
|
|
|
# RDoc uses to document methods, classes, and so on.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# == Roadmap
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# * If you want to use RDoc to create documentation for your Ruby source files,
|
|
|
|
# read on.
|
2008-07-18 04:46:16 +04:00
|
|
|
# * If you want to include extensions written in C, see RDoc::Parser::C
|
2008-06-04 13:37:38 +04:00
|
|
|
# * If you want to drive RDoc programmatically, see RDoc::RDoc.
|
2008-04-26 20:14:19 +04:00
|
|
|
# * If you want to use the library to format text blocks into HTML, have a look
|
|
|
|
# at RDoc::Markup.
|
|
|
|
# * If you want to try writing your own HTML output template, see
|
|
|
|
# RDoc::Generator::HTML
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# == Summary
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-09-25 06:43:03 +04:00
|
|
|
# Once installed, you can create documentation using the +rdoc+ command
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# % rdoc [options] [names...]
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-09-25 06:43:03 +04:00
|
|
|
# For an up-to-date option summary, type
|
|
|
|
# % rdoc --help
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# A typical use might be to generate documentation for a package of Ruby
|
2008-09-25 06:43:03 +04:00
|
|
|
# source (such as RDoc itself).
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# % rdoc
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# This command generates documentation for all the Ruby and C source
|
|
|
|
# files in and below the current directory. These will be stored in a
|
2008-09-25 06:43:03 +04:00
|
|
|
# documentation tree starting in the subdirectory +doc+.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# You can make this slightly more useful for your readers by having the
|
|
|
|
# index page contain the documentation for the primary file. In our
|
|
|
|
# case, we could type
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# % rdoc --main rdoc.rb
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# You'll find information on the various formatting tricks you can use
|
|
|
|
# in comment blocks in the documentation this generates.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# RDoc uses file extensions to determine how to process each file. File names
|
2008-09-25 06:43:03 +04:00
|
|
|
# ending +.rb+ and +.rbw+ are assumed to be Ruby source. Files
|
2008-04-26 20:14:19 +04:00
|
|
|
# ending +.c+ are parsed as C files. All other files are assumed to
|
|
|
|
# contain just Markup-style markup (with or without leading '#' comment
|
|
|
|
# markers). If directory names are passed to RDoc, they are scanned
|
|
|
|
# recursively for C and Ruby source files only.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-09-25 06:43:03 +04:00
|
|
|
# == \Options
|
|
|
|
# rdoc can be passed a variety of command-line options. In addition,
|
|
|
|
# options can be specified via the +RDOCOPT+ environment variable, which
|
|
|
|
# functions similarly to the +RUBYOPT+ environment variable.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-09-25 06:43:03 +04:00
|
|
|
# % export RDOCOPT="-S"
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-09-25 06:43:03 +04:00
|
|
|
# will make rdoc default to inline method source code. Command-line options
|
|
|
|
# always will override those in +RDOCOPT+.
|
|
|
|
#
|
|
|
|
# Run
|
2009-03-06 06:56:38 +03:00
|
|
|
#
|
2008-09-25 06:43:03 +04:00
|
|
|
# % rdoc --help
|
|
|
|
#
|
|
|
|
# for full details on rdoc's options.
|
|
|
|
#
|
|
|
|
# Here are some of the most commonly used options.
|
|
|
|
# [-d, --diagram]
|
|
|
|
# Generate diagrams showing modules and
|
|
|
|
# classes. You need dot V1.8.6 or later to
|
|
|
|
# use the --diagram option correctly. Dot is
|
|
|
|
# available from http://graphviz.org
|
|
|
|
#
|
|
|
|
# [-S, --inline-source]
|
|
|
|
# Show method source code inline, rather than via a popup link.
|
|
|
|
#
|
|
|
|
# [-T, --template=NAME]
|
|
|
|
# Set the template used when generating output.
|
|
|
|
#
|
|
|
|
# == Documenting Source Code
|
|
|
|
#
|
|
|
|
# Comment blocks can be written fairly naturally, either using +#+ on
|
2008-04-26 20:14:19 +04:00
|
|
|
# successive lines of the comment, or by including the comment in
|
2008-09-25 06:43:03 +04:00
|
|
|
# a =begin/=end block. If you use the latter form, the =begin line must be
|
2008-04-26 20:14:19 +04:00
|
|
|
# flagged with an RDoc tag:
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# =begin rdoc
|
|
|
|
# Documentation to be processed by RDoc.
|
2009-03-06 06:56:38 +03:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# ...
|
|
|
|
# =end
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# RDoc stops processing comments if it finds a comment line containing
|
|
|
|
# a <tt>--</tt>. This can be used to separate external from internal
|
|
|
|
# comments, or to stop a comment being associated with a method, class, or
|
|
|
|
# module. Commenting can be turned back on with a line that starts with a
|
|
|
|
# <tt>++</tt>.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# ##
|
|
|
|
# # Extract the age and calculate the date-of-birth.
|
|
|
|
# #--
|
|
|
|
# # FIXME: fails if the birthday falls on February 29th
|
|
|
|
# #++
|
|
|
|
# # The DOB is returned as a Time object.
|
2009-03-06 06:56:38 +03:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# def get_dob(person)
|
|
|
|
# # ...
|
|
|
|
# end
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-09-25 06:43:03 +04:00
|
|
|
# Names of classes, files, and any method names containing an
|
2008-04-26 20:14:19 +04:00
|
|
|
# underscore or preceded by a hash character are automatically hyperlinked
|
2008-07-18 04:46:16 +04:00
|
|
|
# from comment text to their description.
|
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# Method parameter lists are extracted and displayed with the method
|
|
|
|
# description. If a method calls +yield+, then the parameters passed to yield
|
|
|
|
# will also be displayed:
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# def fred
|
|
|
|
# ...
|
|
|
|
# yield line, address
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# This will get documented as:
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# fred() { |line, address| ... }
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# You can override this using a comment containing ':yields: ...' immediately
|
|
|
|
# after the method definition
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# def fred # :yields: index, position
|
|
|
|
# # ...
|
2009-03-06 06:56:38 +03:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# yield line, address
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# which will get documented as
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# fred() { |index, position| ... }
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# +:yields:+ is an example of a documentation directive. These appear
|
|
|
|
# immediately after the start of the document element they are modifying.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-09-25 06:43:03 +04:00
|
|
|
# == \Markup
|
|
|
|
#
|
|
|
|
# * The markup engine looks for a document's natural left margin. This is
|
|
|
|
# used as the initial margin for the document.
|
|
|
|
#
|
|
|
|
# * Consecutive lines starting at this margin are considered to be a
|
|
|
|
# paragraph.
|
|
|
|
#
|
|
|
|
# * If a paragraph starts with a "*", "-", or with "<digit>.", then it is
|
|
|
|
# taken to be the start of a list. The margin in increased to be the first
|
|
|
|
# non-space following the list start flag. Subsequent lines should be
|
|
|
|
# indented to this new margin until the list ends. For example:
|
|
|
|
#
|
|
|
|
# * this is a list with three paragraphs in
|
|
|
|
# the first item. This is the first paragraph.
|
|
|
|
#
|
|
|
|
# And this is the second paragraph.
|
|
|
|
#
|
|
|
|
# 1. This is an indented, numbered list.
|
|
|
|
# 2. This is the second item in that list
|
|
|
|
#
|
|
|
|
# This is the third conventional paragraph in the
|
|
|
|
# first list item.
|
|
|
|
#
|
|
|
|
# * This is the second item in the original list
|
|
|
|
#
|
|
|
|
# * You can also construct labeled lists, sometimes called description
|
|
|
|
# or definition lists. Do this by putting the label in square brackets
|
|
|
|
# and indenting the list body:
|
|
|
|
#
|
|
|
|
# [cat] a small furry mammal
|
|
|
|
# that seems to sleep a lot
|
|
|
|
#
|
|
|
|
# [ant] a little insect that is known
|
|
|
|
# to enjoy picnics
|
|
|
|
#
|
|
|
|
# A minor variation on labeled lists uses two colons to separate the
|
|
|
|
# label from the list body:
|
|
|
|
#
|
|
|
|
# cat:: a small furry mammal
|
|
|
|
# that seems to sleep a lot
|
|
|
|
#
|
|
|
|
# ant:: a little insect that is known
|
|
|
|
# to enjoy picnics
|
|
|
|
#
|
|
|
|
# This latter style guarantees that the list bodies' left margins are
|
|
|
|
# aligned: think of them as a two column table.
|
|
|
|
#
|
|
|
|
# * Any line that starts to the right of the current margin is treated
|
|
|
|
# as verbatim text. This is useful for code listings. The example of a
|
|
|
|
# list above is also verbatim text.
|
|
|
|
#
|
|
|
|
# * A line starting with an equals sign (=) is treated as a
|
|
|
|
# heading. Level one headings have one equals sign, level two headings
|
|
|
|
# have two,and so on.
|
|
|
|
#
|
|
|
|
# * A line starting with three or more hyphens (at the current indent)
|
|
|
|
# generates a horizontal rule. The more hyphens, the thicker the rule
|
|
|
|
# (within reason, and if supported by the output device)
|
|
|
|
#
|
|
|
|
# * You can use markup within text (except verbatim) to change the
|
|
|
|
# appearance of parts of that text. Out of the box, RDoc::Markup
|
|
|
|
# supports word-based and general markup.
|
|
|
|
#
|
|
|
|
# Word-based markup uses flag characters around individual words:
|
|
|
|
#
|
|
|
|
# [\*word*] displays word in a *bold* font
|
|
|
|
# [\_word_] displays word in an _emphasized_ font
|
|
|
|
# [\+word+] displays word in a +code+ font
|
|
|
|
#
|
|
|
|
# General markup affects text between a start delimiter and and end
|
|
|
|
# delimiter. Not surprisingly, these delimiters look like HTML markup.
|
|
|
|
#
|
|
|
|
# [\<b>text...</b>] displays word in a *bold* font
|
|
|
|
# [\<em>text...</em>] displays word in an _emphasized_ font
|
|
|
|
# [\\<i>text...</i>] displays word in an <i>italicized</i> font
|
|
|
|
# [\<tt>text...</tt>] displays word in a +code+ font
|
|
|
|
#
|
|
|
|
# Unlike conventional Wiki markup, general markup can cross line
|
|
|
|
# boundaries. You can turn off the interpretation of markup by
|
|
|
|
# preceding the first character with a backslash. This only works for
|
|
|
|
# simple markup, not HTML-style markup.
|
|
|
|
#
|
|
|
|
# * Hyperlinks to the web starting http:, mailto:, ftp:, or www. are
|
|
|
|
# recognized. An HTTP url that references an external image file is
|
|
|
|
# converted into an inline <IMG..>. Hyperlinks starting 'link:' are
|
|
|
|
# assumed to refer to local files whose path is relative to the --op
|
|
|
|
# directory.
|
|
|
|
#
|
|
|
|
# Hyperlinks can also be of the form <tt>label</tt>[url], in which
|
|
|
|
# case the label is used in the displayed text, and +url+ is
|
|
|
|
# used as the target. If +label+ contains multiple words,
|
|
|
|
# put it in braces: <em>{multi word label}[</em>url<em>]</em>.
|
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# == Directives
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# [+:nodoc:+ / +:nodoc:+ all]
|
2008-09-25 06:43:03 +04:00
|
|
|
# This directive prevents documentation for the element from
|
|
|
|
# being generated. For classes and modules, the methods, aliases,
|
|
|
|
# constants, and attributes directly within the affected class or
|
|
|
|
# module also will be omitted. By default, though, modules and
|
|
|
|
# classes within that class of module _will_ be documented. This is
|
|
|
|
# turned off by adding the +all+ modifier.
|
2009-03-06 06:56:38 +03:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# module MyModule # :nodoc:
|
|
|
|
# class Input
|
|
|
|
# end
|
|
|
|
# end
|
2009-03-06 06:56:38 +03:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# module OtherModule # :nodoc: all
|
|
|
|
# class Output
|
|
|
|
# end
|
|
|
|
# end
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-09-25 06:43:03 +04:00
|
|
|
# In the above code, only class <tt>MyModule::Input</tt> will be documented.
|
|
|
|
# The +:nodoc:+ directive is global across all files for the class or module
|
|
|
|
# to which it applies, so use +:stopdoc:+/+:startdoc:+ to suppress
|
|
|
|
# documentation only for a particular set of methods, etc.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# [+:doc:+]
|
2008-09-25 06:43:03 +04:00
|
|
|
# Forces a method or attribute to be documented even if it wouldn't be
|
|
|
|
# otherwise. Useful if, for example, you want to include documentation of a
|
2008-04-26 20:14:19 +04:00
|
|
|
# particular private method.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# [+:notnew:+]
|
|
|
|
# Only applicable to the +initialize+ instance method. Normally RDoc
|
2008-09-25 06:43:03 +04:00
|
|
|
# assumes that the documentation and parameters for +initialize+ are
|
|
|
|
# actually for the +new+ method, and so fakes out a +new+ for the class.
|
|
|
|
# The +:notnew:+ modifier stops this. Remember that +initialize+ is private,
|
|
|
|
# so you won't see the documentation unless you use the +-a+ command line
|
2008-04-26 20:14:19 +04:00
|
|
|
# option.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# Comment blocks can contain other directives:
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# [<tt>:section: title</tt>]
|
|
|
|
# Starts a new section in the output. The title following +:section:+ is
|
|
|
|
# used as the section heading, and the remainder of the comment containing
|
|
|
|
# the section is used as introductory text. Subsequent methods, aliases,
|
|
|
|
# attributes, and classes will be documented in this section. A :section:
|
|
|
|
# comment block may have one or more lines before the :section: directive.
|
|
|
|
# These will be removed, and any identical lines at the end of the block are
|
|
|
|
# also removed. This allows you to add visual cues such as:
|
2009-03-06 06:56:38 +03:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# # ----------------------------------------
|
|
|
|
# # :section: My Section
|
|
|
|
# # This is the section that I wrote.
|
|
|
|
# # See it glisten in the noon-day sun.
|
|
|
|
# # ----------------------------------------
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# [+:call-seq:+]
|
|
|
|
# Lines up to the next blank line in the comment are treated as the method's
|
|
|
|
# calling sequence, overriding the default parsing of method parameters and
|
|
|
|
# yield arguments.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# [+:include:+ _filename_]
|
|
|
|
# \Include the contents of the named file at this point. The file will be
|
|
|
|
# searched for in the directories listed by the +--include+ option, or in
|
|
|
|
# the current directory by default. The contents of the file will be
|
2008-07-18 04:46:16 +04:00
|
|
|
# shifted to have the same indentation as the ':' at the start of
|
|
|
|
# the :include: directive.
|
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# [+:title:+ _text_]
|
|
|
|
# Sets the title for the document. Equivalent to the <tt>--title</tt>
|
|
|
|
# command line parameter. (The command line parameter overrides any :title:
|
|
|
|
# directive in the source).
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# [+:enddoc:+]
|
|
|
|
# Document nothing further at the current level.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# [+:main:+ _name_]
|
|
|
|
# Equivalent to the <tt>--main</tt> command line parameter.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# [+:stopdoc:+ / +:startdoc:+]
|
|
|
|
# Stop and start adding new documentation elements to the current container.
|
|
|
|
# For example, if a class has a number of constants that you don't want to
|
|
|
|
# document, put a +:stopdoc:+ before the first, and a +:startdoc:+ after the
|
2008-06-04 13:37:38 +04:00
|
|
|
# last. If you don't specify a +:startdoc:+ by the end of the container,
|
2008-04-26 20:14:19 +04:00
|
|
|
# disables documentation for the entire class or module.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-09-25 06:43:03 +04:00
|
|
|
# == Other stuff
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# RDoc is currently being maintained by Eric Hodel <drbrain@segment7.net>
|
|
|
|
#
|
|
|
|
# Dave Thomas <dave@pragmaticprogrammer.com> is the original author of RDoc.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# == Credits
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# * The Ruby parser in rdoc/parse.rb is based heavily on the outstanding
|
|
|
|
# work of Keiju ISHITSUKA of Nippon Rational Inc, who produced the Ruby
|
|
|
|
# parser for irb and the rtags package.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# * Code to diagram classes and modules was written by Sergey A Yanovitsky
|
|
|
|
# (Jah) of Enticla.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# * Charset patch from MoonWolf.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# * Rich Kilmer wrote the kilmer.rb output template.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# * Dan Brickley led the design of the RDF format.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# == License
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# RDoc is Copyright (c) 2001-2003 Dave Thomas, The Pragmatic Programmers. It
|
|
|
|
# is free software, and may be redistributed under the terms specified
|
|
|
|
# in the README file of the Ruby distribution.
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# == Warranty
|
2008-07-18 04:46:16 +04:00
|
|
|
#
|
2008-04-26 20:14:19 +04:00
|
|
|
# This software is provided "as is" and without any express or implied
|
|
|
|
# warranties, including, without limitation, the implied warranties of
|
|
|
|
# merchantibility and fitness for a particular purpose.
|
2008-01-08 12:07:31 +03:00
|
|
|
|
|
|
|
module RDoc
|
|
|
|
|
2008-01-14 06:34:05 +03:00
|
|
|
##
|
|
|
|
# Exception thrown by any rdoc error.
|
|
|
|
|
|
|
|
class Error < RuntimeError; end
|
|
|
|
|
|
|
|
RDocError = Error # :nodoc:
|
|
|
|
|
2008-01-08 12:07:31 +03:00
|
|
|
##
|
|
|
|
# RDoc version you are using
|
|
|
|
|
2008-10-25 03:05:28 +04:00
|
|
|
VERSION = "2.2.2"
|
2008-01-08 12:07:31 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
# Name of the dotfile that contains the description of files to be processed
|
|
|
|
# in the current directory
|
|
|
|
|
|
|
|
DOT_DOC_FILENAME = ".document"
|
|
|
|
|
2008-01-14 06:34:05 +03:00
|
|
|
GENERAL_MODIFIERS = %w[nodoc].freeze
|
|
|
|
|
|
|
|
CLASS_MODIFIERS = GENERAL_MODIFIERS
|
|
|
|
|
|
|
|
ATTR_MODIFIERS = GENERAL_MODIFIERS
|
|
|
|
|
|
|
|
CONSTANT_MODIFIERS = GENERAL_MODIFIERS
|
|
|
|
|
|
|
|
METHOD_MODIFIERS = GENERAL_MODIFIERS +
|
|
|
|
%w[arg args yield yields notnew not-new not_new doc]
|
|
|
|
|
2008-01-08 12:07:31 +03:00
|
|
|
end
|
|
|
|
|