[ruby-cvs:78572] f45c0dc239 (master): Add Proc#ruby2_keywords
"Jeremy Evans" <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.cvs |
|---|---|
| Message-ID | <[email protected]> |
Jeremy Evans 2019-12-06 04:01:20 +0900 (Fri, 06 Dec 2019)
New Revision: f45c0dc239
https://github.com/ruby/ruby/commit/f45c0dc239
Log:
Add Proc#ruby2_keywords
This allows passing keywords through a normal argument splat in a
Proc. While needing ruby2_keywords support for methods is more
common, there is code that delegates keywords through normal
argument splats in procs, including code in Rails. For that
reason, it makes sense to expose this for procs as well.
Internally, ruby2_keywords is not tied to methods, but iseqs,
so this just allows for setting the ruby2_keywords for the iseq
related to the proc.
Modified files:
proc.c
test/ruby/test_keyword.rb