[DOC] Exclude 'Method' from RDoc's autolinking

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

View file

@ -587,7 +587,7 @@ rb_struct_define_under(VALUE outer, const char *name, ...)
*
* A subclass returned by Struct.new has these singleton methods:
*
* - \Method <tt>::new </tt> creates an instance of the subclass:
* - Method <tt>::new </tt> creates an instance of the subclass:
*
* Foo.new # => #<struct Struct::Foo foo=nil, bar=nil>
* Foo.new(0) # => #<struct Struct::Foo foo=0, bar=nil>
@ -600,12 +600,12 @@ rb_struct_define_under(VALUE outer, const char *name, ...)
* Foo.new(foo: 0, bar: 1, baz: 2)
* # Raises ArgumentError: unknown keywords: baz
*
* - \Method <tt>:inspect</tt> returns a string representation of the subclass:
* - Method <tt>:inspect</tt> returns a string representation of the subclass:
*
* Foo.inspect
* # => "Struct::Foo"
*
* - \Method <tt>::members</tt> returns an array of the member names:
* - Method <tt>::members</tt> returns an array of the member names:
*
* Foo.members # => [:foo, :bar]
*