aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/autoloading_and_reloading_constants.md
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-01-18 11:43:03 +0900
committeryui-knk <spiketeika@gmail.com>2015-01-18 11:43:03 +0900
commit75b382301de3cda2a0be1a15e533417e8060d80b (patch)
tree0b48e3fc0da181aa3f0a2dcec74529248bd98db2 /guides/source/autoloading_and_reloading_constants.md
parentd6909af30991b10f4a69083b6eb26ed6d97f4641 (diff)
downloadrails-75b382301de3cda2a0be1a15e533417e8060d80b.tar.gz
rails-75b382301de3cda2a0be1a15e533417e8060d80b.tar.bz2
rails-75b382301de3cda2a0be1a15e533417e8060d80b.zip
[ci skip] Move a introduction of `Module.nesting`
Move a introduction of `Module.nesting` to the beginning of sentence. This change will help reader to try to dump `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 115074db3a..408b1a9a12 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):