diff options
author | yui-knk <spiketeika@gmail.com> | 2015-01-24 22:50:08 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2015-01-24 22:50:08 +0900 |
commit | 419d259f6330cda5b744072735b697b93d7b509f (patch) | |
tree | 2c059a033d1ee286d28e306e8cba7d370bd1a676 /guides | |
parent | 9bf9097973c083b23305fe3dddfb359f7049fec9 (diff) | |
download | rails-419d259f6330cda5b744072735b697b93d7b509f.tar.gz rails-419d259f6330cda5b744072735b697b93d7b509f.tar.bz2 rails-419d259f6330cda5b744072735b697b93d7b509f.zip |
[ci skip] Fix what is pushed to nesting about eval family
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/autoloading_and_reloading_constants.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/guides/source/autoloading_and_reloading_constants.md b/guides/source/autoloading_and_reloading_constants.md index 202dc601a7..51c46d707c 100644 --- a/guides/source/autoloading_and_reloading_constants.md +++ b/guides/source/autoloading_and_reloading_constants.md @@ -151,9 +151,10 @@ executed, and popped after it. * A singleton class opened with `class << object` gets pushed, and popped later. -* When any of the `*_eval` family of methods is called using a string argument, +* When `instance_eval` is called using a string argument, the singleton class of the receiver is pushed to the nesting of the eval'ed -code. +code. When `class_eval` or `module_eval` is called using a string argument, +the receiver is pushed to the nesting of the eval'ed code. * The nesting at the top-level of code interpreted by `Kernel#load` is empty unless the `load` call receives a true value as second argument, in which case |