summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-05 05:00:33 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-05 05:00:33 +0000
commit4061f5b6fcfe6ad76d7ba7cd4fd6b0274c2d910f (patch)
treea57dc83928734148ac9197aa94ce8ccf79ba0289 /doc
parent3b983407ef254cf1908f844fecb4d8b3a02f9a67 (diff)
* doc/syntax/modules_and_classes.rdoc: Improved description of methods
on a module or class as suggested by Tobias Buhlmann git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-rw-r--r--doc/syntax/modules_and_classes.rdoc9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/syntax/modules_and_classes.rdoc b/doc/syntax/modules_and_classes.rdoc
index 4710dcf3cb..cca9dc2563 100644
--- a/doc/syntax/modules_and_classes.rdoc
+++ b/doc/syntax/modules_and_classes.rdoc
@@ -120,8 +120,13 @@ If a constant is defined at the top-level you may preceded it with
=== Methods
-Class methods (also known as module functions, see Module#module_function) may
-be called directly.
+For method definition documentation see the {syntax documentation for
+methods}[rdoc-ref:doc/syntax/methods.rdoc].
+
+Class methods may be called directly. (This is slightly confusing, but a
+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
it outside the method as the scope is the same.