ruby-changes:71727
From: Nobuyoshi <ko1@a...>
Date: Thu, 14 Apr 2022 12:56:10 +0900 (JST)
Subject: [ruby-changes:71727] 2ff41e97fa (master): [DOC] Now underscore methods can cross-reference
https://git.ruby-lang.org/ruby.git/commit/?id=2ff41e97fa From 2ff41e97fac1503e66554d7d410994b9d41fe0dc Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 14 Apr 2022 12:55:44 +0900 Subject: [DOC] Now underscore methods can cross-reference --- object.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/object.c b/object.c index 296dc68322..3a9ce45f5c 100644 --- a/object.c +++ b/object.c @@ -4198,8 +4198,8 @@ f_sprintf(int c, const VALUE *v, VALUE _) https://github.com/ruby/ruby/blob/trunk/object.c#L4198 * - #!: Returns the boolean negation of +self+: +true+ or +false+. * - #!=: Returns whether +self+ and the given object are _not_ equal. * - #==: Returns whether +self+ and the given object are equivalent. - * - {__id__}[#method-i-__id__]: Returns the integer object identifier for +self+. - * - {__send__}[#method-i-__send__]: Calls the method identified by the given symbol. + * - #__id__: Returns the integer object identifier for +self+. + * - #__send__: Calls the method identified by the given symbol. * - #equal?: Returns whether +self+ and the given object are the same object. * - #instance_eval: Evaluates the given string or block in the context of +self+. * - #instance_exec: Executes the given block in the context of +self+, @@ -4395,12 +4395,10 @@ InitVM_Object(void) https://github.com/ruby/ruby/blob/trunk/object.c#L4395 * * === Querying * - * - {#__callee__}[#method-i-__callee__]: Returns the called name - * of the current method as a symbol. - * - {#__dir__}[#method-i-__dir__]: Returns the path to the directory - * from which the current method is called. - * - {#__method__}[#method-i-__method__]: Returns the name - * of the current method as a symbol. + * - #__callee__: Returns the called name of the current method as a symbol. + * - #__dir__: Returns the path to the directory from which the current + * method is called. + * - #__method__: Returns the name of the current method as a symbol. * - #autoload?: Returns the file to be loaded when the given module is referenced. * - #binding: Returns a Binding for the context at the point of call. * - #block_given?: Returns +true+ if a block was passed to the calling method. -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/