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

ruby-changes:65369

From: usa <ko1@a...>
Date: Mon, 1 Mar 2021 00:06:38 +0900 (JST)
Subject: [ruby-changes:65369] a7133b0571 (ruby_2_6): merge revision(s) ac2106ac, cf90df22: [Backport #16813]

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

From a7133b05718f59eccc95e67781f0d6e109bf3023 Mon Sep 17 00:00:00 2001
From: usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Sun, 28 Feb 2021 15:06:26 +0000
Subject: merge revision(s) ac2106ac,cf90df22: [Backport #16813]

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

	---
	 proc.c | 4 ++--
	 1 file changed, 2 insertions(+), 2 deletions(-)

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

	---
	 proc.c | 14 +++++++++++++-
	 1 file changed, 13 insertions(+), 1 deletion(-)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 proc.c    | 18 +++++++++++++++---
 version.h |  2 +-
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/proc.c b/proc.c
index caebee4..c18ea23 100644
--- a/proc.c
+++ b/proc.c
@@ -2100,10 +2100,22 @@ method_clone(VALUE self) https://github.com/ruby/ruby/blob/trunk/proc.c#L2100
  */
 
 
+/*  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.
@@ -3164,8 +3176,8 @@ rb_method_compose_to_left(VALUE self, VALUE g) https://github.com/ruby/ruby/blob/trunk/proc.c#L3176
  *     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 2c86d53..45e5a0b 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/version.h#L1
 #define RUBY_VERSION "2.6.7"
 #define RUBY_RELEASE_DATE "2021-03-01"
-#define RUBY_PATCHLEVEL 163
+#define RUBY_PATCHLEVEL 164
 
 #define RUBY_RELEASE_YEAR 2021
 #define RUBY_RELEASE_MONTH 3
-- 
cgit v1.1


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

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