From 75b382301de3cda2a0be1a15e533417e8060d80b Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sun, 18 Jan 2015 11:43:03 +0900 Subject: [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`. --- guides/source/autoloading_and_reloading_constants.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'guides/source/autoloading_and_reloading_constants.md') 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): -- cgit v1.2.3