diff options
author | Xavier Noria <fxn@hashref.com> | 2015-01-24 15:34:22 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2015-01-24 15:34:22 +0100 |
commit | 01849a9749a80517b5e00abffedbfe03f6028830 (patch) | |
tree | be25f2692c8ebd394d24e57636d76f47018f33bf /guides | |
parent | c8e39e2fd439c0d3a6cedb858229fc93f430c295 (diff) | |
parent | 419d259f6330cda5b744072735b697b93d7b509f (diff) | |
download | rails-01849a9749a80517b5e00abffedbfe03f6028830.tar.gz rails-01849a9749a80517b5e00abffedbfe03f6028830.tar.bz2 rails-01849a9749a80517b5e00abffedbfe03f6028830.zip |
Merge pull request #18671 from yui-knk/fix/const_guide
[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 |