aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/autoloading_and_reloading_constants.md
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2015-01-18 12:01:54 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2015-01-18 12:01:54 -0200
commit8a87ebfd8f5f3ca2e7d7c063f8cc98158896e475 (patch)
treeba95796bb842b7cfcc9839304b06d11c070028da /guides/source/autoloading_and_reloading_constants.md
parentf3184a96d09ec2a98c7e8adbcec266663f9ba849 (diff)
parent75b382301de3cda2a0be1a15e533417e8060d80b (diff)
downloadrails-8a87ebfd8f5f3ca2e7d7c063f8cc98158896e475.tar.gz
rails-8a87ebfd8f5f3ca2e7d7c063f8cc98158896e475.tar.bz2
rails-8a87ebfd8f5f3ca2e7d7c063f8cc98158896e475.zip
Merge pull request #18576 from yui-knk/fix/autoload4
[ci skip] Move a introduction of `Module.nesting`
Diffstat (limited to 'guides/source/autoloading_and_reloading_constants.md')
-rw-r--r--guides/source/autoloading_and_reloading_constants.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/guides/source/autoloading_and_reloading_constants.md b/guides/source/autoloading_and_reloading_constants.md
index 0dddc4e245..c4fac1cff5 100644
--- a/guides/source/autoloading_and_reloading_constants.md
+++ b/guides/source/autoloading_and_reloading_constants.md
@@ -80,7 +80,8 @@ end
```
The *nesting* at any given place is the collection of enclosing nested class and
-module objects outwards. For example, in the previous example, the nesting at
+module objects outwards. The nesting at any given place can be inspected with
+`Module.nesting`. For example, in the previous example, the nesting at
(1) is
```ruby
@@ -153,8 +154,6 @@ the blocks that may be passed to `Class.new` and `Module.new` do not get the
class or module being defined pushed to their nesting. That's one of the
differences between defining classes and modules in one way or another.
-The nesting at any given place can be inspected with `Module.nesting`.
-
### Class and Module Definitions are Constant Assignments
Let's suppose the following snippet creates a class (rather than reopening it):