8000 Upgrade Ruby 2.7 by eileencodes · Pull Request #114 · github/ruby · GitHub
[go: up one dir, main page]

Skip to content

Upgrade Ruby 2.7 #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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]
  • Loading branch information
nagachika committed Jun 7, 2020
commit 16aef5da5622971ae83dcc281b03a53c5f622ca3
18 changes: 15 additions & 3 deletions proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2230,10 +2230,22 @@ method_clone(VALUE self)
*/


/* 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.
Expand Down Expand Up @@ -3479,8 +3491,8 @@ rb_method_compose_to_left(VALUE self, VALUE g)
* 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
Expand Down
6 changes: 3 additions & 3 deletions version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# 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"

Expand Down
0