diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-18 03:39:49 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-18 03:39:49 +0000 |
commit | 4f94cb43fcf7035e7ee1db0ba6750d3249567085 (patch) | |
tree | 8dea211a4bc465a4936d38f74507edce2d8bdc7b /doc/syntax/modules_and_classes.rdoc | |
parent | b7d153699153629f037a059b930d8e928c42a4a1 (diff) |
* doc/syntax/*.rdoc: separated modifier at sentence.
[ci skip][fix GH-1121] Patch by @clandry94
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc/syntax/modules_and_classes.rdoc')
-rw-r--r-- | doc/syntax/modules_and_classes.rdoc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/syntax/modules_and_classes.rdoc b/doc/syntax/modules_and_classes.rdoc index a82a6f27ed..dd70d4ac21 100644 --- a/doc/syntax/modules_and_classes.rdoc +++ b/doc/syntax/modules_and_classes.rdoc @@ -94,7 +94,7 @@ nesting: end However, if you use <code>::</code> to define <code>A::B</code> without -nesting it inside +A+ a NameError exception will be raised because the nesting +nesting it inside +A+, a NameError exception will be raised because the nesting does not include +A+: module A @@ -129,7 +129,7 @@ method on a module is often called a "class method" instead of a "module method". See also Module#module_function which can convert an instance method into a class method.) -When a class method references a constant it uses the same rules as referencing +When a class method references a constant, it uses the same rules as referencing it outside the method as the scope is the same. Instance methods defined in a module are only callable when included. These @@ -342,4 +342,3 @@ is equivalent to this code block: end Both objects will have a +my_method+ that returns +2+. - |