1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
charliesome 2013-06-01 14:17:14 +00:00
parent 6bdfe415df
commit 8b1b2638f3
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sat Jun 1 23:17:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
* 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@iDaemons.org>
* lib/set.rb (Set#freeze, taint, untaint): Save a "self" by

View file

@ -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