aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-01 14:17:14 +0000
committercharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-01 14:17:14 +0000
commit8b1b2638f333267723e6909ee101de11777aa8f3 (patch)
treea7e5a034022cae5367935827e1475dfdbc2cbbb1
parent6bdfe415df2ef15487ba932762c028640b8ff71a (diff)
downloadruby-8b1b2638f333267723e6909ee101de11777aa8f3.tar.gz
* 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
-rw-r--r--ChangeLog5
-rw-r--r--vm_eval.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 82874d5cf2..af83a9bef5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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