From 05ac6dba6651300592076066f7a16ff082cf3624 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Thu, 4 Jan 2024 16:17:01 +0000 Subject: [PATCH] Tweaks to Markup Reference --- doc/rdoc/markup_reference.rb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/doc/rdoc/markup_reference.rb b/doc/rdoc/markup_reference.rb index 9e51cc4f0c..17da68bb1d 100644 --- a/doc/rdoc/markup_reference.rb +++ b/doc/rdoc/markup_reference.rb @@ -463,8 +463,8 @@ # # - Specifies that the defined object should not be documented. # -# - For method definitions in C code, it must be placed before the -# implementation: +# - For a method definition in C code, it the directive must be in the comment line +# immediately preceding the definition: # # /* :nodoc: */ # static VALUE @@ -473,8 +473,8 @@ # return self; # } # -# Note that this directive has no effect at all at method -# definition places. E.g., +# Note that this directive has no effect at all +# when placed at the method declaration: # # /* :nodoc: */ # rb_define_method(cMyClass, "do_something", something_func, 0); @@ -483,8 +483,8 @@ # Therefore, +do_something+ method will be reported as "undocumented" # unless that method or function is documented elsewhere. # -# - For constant definitions in C code, this directive can not work -# because there is no "implementation" place for constants. +# - For a constant definition in C code, this directive can not work +# because there is no "implementation" place for a constant. # # - # :nodoc: all: # @@ -497,7 +497,7 @@ # # - Appended to a line of code # that defines a class, module, method, alias, constant, or attribute. -# - Specifies the defined object should be documented, even if otherwise +# - Specifies the defined object should be documented, even if it otherwise # would not be documented. # # - # :notnew: (aliased as :not_new: and :not-new:): @@ -1209,26 +1209,26 @@ # class RDoc::MarkupReference - # example class + # Example class. class DummyClass; end - # example module + # Example module. module DummyModule; end - # example singleton method + # Example singleton method. def self.dummy_singleton_method(foo, bar); end - # example instance method + # Example instance method. def dummy_instance_method(foo, bar); end; alias dummy_instance_alias dummy_instance_method - # example attribute + # Example attribute. attr_accessor :dummy_attribute alias dummy_attribute_alias dummy_attribute - # example constant + # Example constant. DUMMY_CONSTANT = '' # :call-seq: