diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-16 05:28:55 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-16 05:28:55 +0000 |
commit | a377ef5e6386ee526ddb1687a49ec26002107f98 (patch) | |
tree | 6b4bd42868e5995e4c7b2a8902d0684139e45e5a | |
parent | 6853b44a9260390b6e688e7c42aedcd5540e291f (diff) | |
download | ruby-a377ef5e6386ee526ddb1687a49ec26002107f98.tar.gz |
* vm_eval.c (rb_mod_module_eval): fix the documentation of
class_eval to mention constant lookup. [ruby-core:41718]
[Bug #5777]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | vm_eval.c | 9 |
2 files changed, 11 insertions, 4 deletions
@@ -1,3 +1,9 @@ +Fri Mar 16 14:27:11 2012 Shugo Maeda <shugo@ruby-lang.org> + + * vm_eval.c (rb_mod_module_eval): fix the documentation of + class_eval to mention constant lookup. [ruby-core:41718] + [Bug #5777] + Fri Mar 16 14:10:45 2012 Shugo Maeda <shugo@ruby-lang.org> * lib/net/imap.rb (initialize): raise Net::IMAP::Error when the @@ -1379,10 +1379,11 @@ rb_obj_instance_exec(int argc, VALUE *argv, VALUE self) * mod.class_eval(string [, filename [, lineno]]) -> obj * mod.module_eval {|| block } -> obj * - * Evaluates the string or block in the context of _mod_. This can - * be used to add methods to a class. <code>module_eval</code> returns - * the result of evaluating its argument. The optional _filename_ - * and _lineno_ parameters set the text for error messages. + * Evaluates the string or block in the context of _mod_, except that when + * a block is given, constant lookup is not affected. This can be used to + * add methods to a class. <code>module_eval</code> returns the result of + * evaluating its argument. The optional _filename_ and _lineno_ parameters + * set the text for error messages. * * class Thing * end |