Skip to content

[DOC] Tweaks to Markup Reference #1077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions doc/rdoc/markup_reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -473,8 +473,8 @@
# return self;
# }
#
# Note that this directive has <em>no effect at all</em> at method
# definition places. E.g.,
# Note that this directive has <em>no effect at all</em>
# when placed at the method declaration:
#
# /* :nodoc: */
# rb_define_method(cMyClass, "do_something", something_func, 0);
Expand All @@ -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 <em>can not work</em>
# because there is no "implementation" place for constants.
# - For a constant definition in C code, this directive <em>can not work</em>
# because there is no "implementation" place for a constant.
#
# - <tt># :nodoc: all</tt>:
#
Expand 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.
#
# - <tt># :notnew:</tt> (aliased as <tt>:not_new:</tt> and <tt>:not-new:</tt>):
Expand Down Expand Up @@ -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:
Expand Down