ruby-changes:28971
From: charliesome <ko1@a...>
Date: Sat, 1 Jun 2013 23:17:25 +0900 (JST)
Subject: [ruby-changes:28971] charliesome:r41023 (trunk): * vm_eval.c (rb_mod_module_eval): mention in docs that arguments passed
charliesome 2013-06-01 23:17:14 +0900 (Sat, 01 Jun 2013) New Revision: 41023 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41023 Log: * vm_eval.c (rb_mod_module_eval): mention in docs that arguments passed to the method are passed to the block Modified files: trunk/ChangeLog trunk/vm_eval.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41022) +++ ChangeLog (revision 41023) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Jun 1 23:17:00 2013 Charlie Somerville <charliesome@r...> + + * vm_eval.c (rb_mod_module_eval): mention in docs that arguments passed + to the method are passed to the block + Sat Jun 1 17:58:13 2013 Akinori MUSHA <knu@i...> * lib/set.rb (Set#freeze, taint, untaint): Save a "self" by Index: vm_eval.c =================================================================== --- vm_eval.c (revision 41022) +++ vm_eval.c (revision 41023) @@ -1663,6 +1663,8 @@ rb_mod_module_eval(int argc, VALUE *argv https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1663 * * 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/