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 | bfd227dff89979cfdf7ce8a3565dab17fce1be5c (patch) | |
tree | 8dea211a4bc465a4936d38f74507edce2d8bdc7b /doc/syntax/modules_and_classes.rdoc | |
parent | 28f3a7e3d5da9cbb00a75d29dcacce3a82d2b975 (diff) | |
download | ruby-bfd227dff89979cfdf7ce8a3565dab17fce1be5c.tar.gz |
* 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+. - |