summaryrefslogtreecommitdiffstats
path: root/lib/rdoc/parsers/parse_c.rb
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-19 03:23:51 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-19 03:23:51 +0000
commit12900be7dfa346dc18e13aeb5a1e562cbb7aa664 (patch)
treed1a2f12737c85090b06573455bced98c4f29489f /lib/rdoc/parsers/parse_c.rb
parentc73c48c8b72e001b66500557fb870eb8a577eda4 (diff)
downloadruby-12900be7dfa346dc18e13aeb5a1e562cbb7aa664.tar.gz
ruby-12900be7dfa346dc18e13aeb5a1e562cbb7aa664.tar.xz
ruby-12900be7dfa346dc18e13aeb5a1e562cbb7aa664.zip
Fix typos (Doug Kearns)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers/parse_c.rb')
-rw-r--r--lib/rdoc/parsers/parse_c.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb
index d491e3d88..d97e08bf4 100644
--- a/lib/rdoc/parsers/parse_c.rb
+++ b/lib/rdoc/parsers/parse_c.rb
@@ -44,6 +44,27 @@
#
# C classes can be diagramed (see /tc/dl/ruby/ruby/error.c), and RDoc
# integrates C and Ruby source into one tree
+ #
+ # The comment blocks may include special direcives:
+ #
+ # [Document-class: <i>name</i>]
+ # This comment block is documentation for the given class. Use this
+ # when the <tt>Init_xxx</tt> method is not named after the class.
+ #
+ # [Document-method: <i>name</i>]
+ # This comment documents the named method. Use when RDoc cannot outomatically
+ # find the method from it's declaration
+ #
+ # [call-seq: <i>text up to an empty line</i>]
+ # Because C source doesn't give descripive names to Ruby-level parameters,
+ # you need to document the calling sequence explicitly
+ #
+ # In additon, RDoc assumes by default that the C method implementing a
+ # Ruby function is in the same source file as the rb_define_method call.
+ # If this isn't the case, add the comment
+ #
+ # rb_define_method(....); // in: filename
+ #
# Classes and modules built in to the interpreter. We need
# these to define superclasses of user objects