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): fix the documentation of

class_eval to mention class variable lookup.  [ruby-core:40649]
  [Bug #5544]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2012-03-16 05:38:52 +00:00
parent a377ef5e63
commit 58d1b85c78
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
Fri Mar 16 14:37:57 2012 Shugo Maeda <shugo@ruby-lang.org>
* vm_eval.c (rb_mod_module_eval): fix the documentation of
class_eval to mention class variable lookup. [ruby-core:40649]
[Bug #5544]
Fri Mar 16 14:27:11 2012 Shugo Maeda <shugo@ruby-lang.org> Fri Mar 16 14:27:11 2012 Shugo Maeda <shugo@ruby-lang.org>
* vm_eval.c (rb_mod_module_eval): fix the documentation of * vm_eval.c (rb_mod_module_eval): fix the documentation of

View file

@ -1380,10 +1380,10 @@ rb_obj_instance_exec(int argc, VALUE *argv, VALUE self)
* mod.module_eval {|| block } -> obj * mod.module_eval {|| block } -> obj
* *
* Evaluates the string or block in the context of _mod_, except that when * 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 * a block is given, constant/class variable lookup is not affected. This
* add methods to a class. <code>module_eval</code> returns the result of * can be used to add methods to a class. <code>module_eval</code> returns
* evaluating its argument. The optional _filename_ and _lineno_ parameters * the result of evaluating its argument. The optional _filename_ and
* set the text for error messages. * _lineno_ parameters set the text for error messages.
* *
* class Thing * class Thing
* end * end