[前][次][番号順一覧][スレッド一覧]

ruby-changes:61601

From: nagachika <ko1@a...>
Date: Mon, 8 Jun 2020 09:58:22 +0900 (JST)
Subject: [ruby-changes:61601] 16aef5da56 (ruby_2_7): merge revision(s) ac2106acc276854ae2ac8cc5fa6859aa28362f2f,cf90df22c74da2f87421749e8d065cfbd3812afd: [Backport #16813]

https://git.ruby-lang.org/ruby.git/commit/?id=16aef5da56

From 16aef5da5622971ae83dcc281b03a53c5f622ca3 Mon Sep 17 00:00:00 2001
From: nagachika <nagachika@r...>
Date: Sun, 7 Jun 2020 12:04:23 +0900
Subject: merge revision(s)
 ac2106acc276854ae2ac8cc5fa6859aa28362f2f,cf90df22c74da2f87421749e8d065cfbd3812afd:
 [Backport #16813]

	[DOC] Fixed explanation for Method#>> [Bug #16813] [ci skip]

	[DOC] Separated Method#[] from Method#call [Bug #16813] [ci skip]

diff --git a/proc.c b/proc.c
index deffe1f..020505a 100644
--- a/proc.c
+++ b/proc.c
@@ -2230,10 +2230,22 @@ method_clone(VALUE self) https://github.com/ruby/ruby/blob/trunk/proc.c#L2230
  */
 
 
+/*  Document-method: Method#[]
+ *
+ *  call-seq:
+ *     meth[args, ...]         -> obj
+ *
+ *  Invokes the <i>meth</i> with the specified arguments, returning the
+ *  method's return value, like #call.
+ *
+ *     m = 12.method("+")
+ *     m[3]         #=> 15
+ *     m[20]        #=> 32
+ */
+
 /*
  *  call-seq:
  *     meth.call(args, ...)    -> obj
- *     meth[args, ...]         -> obj
  *
  *  Invokes the <i>meth</i> with the specified arguments, returning the
  *  method's return value.
@@ -3479,8 +3491,8 @@ rb_method_compose_to_left(VALUE self, VALUE g) https://github.com/ruby/ruby/blob/trunk/proc.c#L3491
  *     meth >> g -> a_proc
  *
  *  Returns a proc that is the composition of this method and the given <i>g</i>.
- *  The returned proc takes a variable number of arguments, calls <i>g</i> with them
- *  then calls this method with the result.
+ *  The returned proc takes a variable number of arguments, calls this method
+ *  with them then calls <i>g</i> with the result.
  *
  *     def f(x)
  *       x * x
diff --git a/version.h b/version.h
index 1a58fad..b82c1d5 100644
--- a/version.h
+++ b/version.h
@@ -2,11 +2,11 @@ https://github.com/ruby/ruby/blob/trunk/version.h#L2
 # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
 #define RUBY_VERSION_TEENY 1
 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
-#define RUBY_PATCHLEVEL 83
+#define RUBY_PATCHLEVEL 84
 
 #define RUBY_RELEASE_YEAR 2020
-#define RUBY_RELEASE_MONTH 3
-#define RUBY_RELEASE_DAY 31
+#define RUBY_RELEASE_MONTH 6
+#define RUBY_RELEASE_DAY 7
 
 #include "ruby/version.h"
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]