From 8b1b2638f333267723e6909ee101de11777aa8f3 Mon Sep 17 00:00:00 2001 From: charliesome Date: Sat, 1 Jun 2013 14:17:14 +0000 Subject: * vm_eval.c (rb_mod_module_eval): mention in docs that arguments passed to the method are passed to the block git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index c27df07ff7..8311544139 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -1663,6 +1663,8 @@ rb_mod_module_eval(int argc, VALUE *argv, VALUE mod) * * Evaluates the given block in the context of the class/module. * The method defined in the block will belong to the receiver. + * Any arguments passed to the method will be passed to the block. + * This can be used if the block needs to access instance variables. * * class Thing * end -- cgit v1.2.3