summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-14 12:55:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-14 12:55:44 +0900
commit2ff41e97fac1503e66554d7d410994b9d41fe0dc (patch)
tree21c3a3d0d229fda2b39b7c2a580ee8d6196402b0 /object.c
parente06100d969c7f6a275e121cb1154d3947d1ebe32 (diff)
downloadruby-2ff41e97fac1503e66554d7d410994b9d41fe0dc.tar.gz
[DOC] Now underscore methods can cross-reference
Diffstat (limited to 'object.c')
-rw-r--r--object.c14
1 files 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 _)
* - #!: 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)
*
* === 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.