diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-02 05:48:29 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-02 05:48:29 +0000 |
commit | bb504213816e4598f1961b99e115f8ba59bef71f (patch) | |
tree | ff451d7ff4f58697fb5aff4779c4d8d9740481ad /include/ruby/ruby.h | |
parent | 499b5a9197f68e14873e641b737aea40a0f8bc5a (diff) | |
download | ruby-bb504213816e4598f1961b99e115f8ba59bef71f.tar.gz |
* string.c (sym_to_proc, sym_call): A Proc created by Symbol#to_proc
should close over the current refinements.
[ruby-dev:46345] [Bug #7261]
* vm_eval.c (rb_call0, rb_search_method_entry,
rb_funcall_passing_block_with_refinements): add a new argument
`refinements' for the above changes.
* test/ruby/test_refinement.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 3e513cc63d..8074334269 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1317,6 +1317,8 @@ VALUE rb_funcall(VALUE, ID, int, ...); VALUE rb_funcall2(VALUE, ID, int, const VALUE*); VALUE rb_funcall3(VALUE, ID, int, const VALUE*); VALUE rb_funcall_passing_block(VALUE, ID, int, const VALUE*); +VALUE rb_funcall_passing_block_with_refinements(VALUE, ID, int, + const VALUE*, VALUE); int rb_scan_args(int, const VALUE*, const char*, ...); VALUE rb_call_super(int, const VALUE*); |