[DOC] Exclude 'Class' and 'Module' from RDoc's autolinking

This commit is contained in:
Nobuyoshi Nakada 2025-01-02 12:36:06 +09:00
parent b4ec22fe6c
commit e433e6515e
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
Notes: git 2025-01-02 05:23:06 +00:00
24 changed files with 44 additions and 42 deletions

View file

@ -532,7 +532,7 @@ rb_struct_define_under(VALUE outer, const char *name, ...)
* Foo = Struct.new('Foo', :foo, :bar) # => Struct::Foo
* f = Foo.new(0, 1) # => #<struct Struct::Foo foo=0, bar=1>
*
* <b>\Class Name</b>
* <b>Class Name</b>
*
* With string argument +class_name+,
* returns a new subclass of +Struct+ named <tt>Struct::<em>class_name</em></tt>:
@ -1552,7 +1552,7 @@ rb_struct_dig(int argc, VALUE *argv, VALUE self)
/*
* Document-class: Data
*
* \Class \Data provides a convenient way to define simple classes
* Class \Data provides a convenient way to define simple classes
* for value-alike objects.
*
* The simplest example of usage:
@ -2065,7 +2065,7 @@ rb_data_inspect(VALUE s)
/*
* Document-class: Struct
*
* \Class \Struct provides a convenient way to create a simple class
* Class \Struct provides a convenient way to create a simple class
* that can store and fetch values.
*
* This example creates a subclass of +Struct+, <tt>Struct::Customer</tt>;
@ -2105,7 +2105,7 @@ rb_data_inspect(VALUE s)
*
* == What's Here
*
* First, what's elsewhere. \Class \Struct:
* First, what's elsewhere. Class \Struct:
*
* - Inherits from {class Object}[rdoc-ref:Object@What-27s+Here].
* - Includes {module Enumerable}[rdoc-ref:Enumerable@What-27s+Here],