mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[DOC] Exclude 'Method' from RDoc's autolinking
This commit is contained in:
parent
d441d35107
commit
b4ec22fe6c
Notes:
git
2025-01-02 05:23:07 +00:00
20 changed files with 70 additions and 71 deletions
6
struct.c
6
struct.c
|
@ -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]
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue