From bb504213816e4598f1961b99e115f8ba59bef71f Mon Sep 17 00:00:00 2001 From: shugo Date: Fri, 2 Nov 2012 05:48:29 +0000 Subject: * 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 --- include/ruby/ruby.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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*); -- cgit v1.2.3