diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-12-05 11:01:20 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-12-09 17:10:19 +0200 |
commit | f45c0dc23980d7fd8167d290ea7c354cf2cdb500 (patch) | |
tree | 66f279aadb01d932d8ce320b7f268ddc9f1dc67a /COPYING.ja | |
parent | c2dc27d6435f40ff24f553cf47816a1c696bbbba (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2728
Diffstat (limited to 'COPYING.ja')
0 files changed, 0 insertions, 0 deletions