Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16aef5d

Browse files
committed
merge revision(s) ac2106a,cf90df22c74da2f87421749e8d065cfbd3812afd: [Backport #16813]
[DOC] Fixed explanation for Method#>> [Bug #16813] [ci skip] [DOC] Separated Method#[] from Method#call [Bug #16813] [ci skip]
1 parent a0c7c23 commit 16aef5d

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

proc.c

+15-3
Original file line numberDiff line numberDiff line change
@@ -2230,10 +2230,22 @@ method_clone(VALUE self)
22302230
*/
22312231

22322232

2233+
/* Document-method: Method#[]
2234+
*
2235+
* call-seq:
2236+
* meth[args, ...] -> obj
2237+
*
2238+
* Invokes the <i>meth</i> with the specified arguments, returning the
2239+
* method's return value, like #call.
2240+
*
2241+
* m = 12.method("+")
2242+
* m[3] #=> 15
2243+
* m[20] #=> 32
2244+
*/
2245+
22332246
/*
22342247
* call-seq:
22352248
* meth.call(args, ...) -> obj
2236-
* meth[args, ...] -> obj
22372249
*
22382250
* Invokes the <i>meth</i> with the specified arguments, returning the
22392251
* method's return value.
@@ -3479,8 +3491,8 @@ rb_method_compose_to_left(VALUE self, VALUE g)
34793491
* meth >> g -> a_proc
34803492
*
34813493
* Returns a proc that is the composition of this method and the given <i>g</i>.
3482-
* The returned proc takes a variable number of arguments, calls <i>g</i> with them
3483-
* then calls this method with the result.
3494+
* The returned proc takes a variable number of arguments, calls this method
3495+
* with them then calls <i>g</i> with the result.
34843496
*
34853497
* def f(x)
34863498
* x * x

version.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
33
#define RUBY_VERSION_TEENY 1
44
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
5-
#define RUBY_PATCHLEVEL 83
5+
#define RUBY_PATCHLEVEL 84
66

77
#define RUBY_RELEASE_YEAR 2020
8-
#define RUBY_RELEASE_MONTH 3
9-
#define RUBY_RELEASE_DAY 31
8+
#define RUBY_RELEASE_MONTH 6
9+
#define RUBY_RELEASE_DAY 7
1010

1111
#include "ruby/version.h"
1212

0 commit comments

Comments
 (0)