ruby-changes:26654
From: drbrain <ko1@a...>
Date: Sat, 5 Jan 2013 14:00:43 +0900 (JST)
Subject: [ruby-changes:26654] drbrain:r38705 (trunk): * doc/syntax/modules_and_classes.rdoc: Improved description of methods
drbrain 2013-01-05 14:00:33 +0900 (Sat, 05 Jan 2013) New Revision: 38705 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38705 Log: * doc/syntax/modules_and_classes.rdoc: Improved description of methods on a module or class as suggested by Tobias Buhlmann Modified files: trunk/ChangeLog trunk/doc/syntax/modules_and_classes.rdoc Index: doc/syntax/modules_and_classes.rdoc =================================================================== --- doc/syntax/modules_and_classes.rdoc (revision 38704) +++ doc/syntax/modules_and_classes.rdoc (revision 38705) @@ -120,8 +120,13 @@ If a constant is defined at the top-leve https://github.com/ruby/ruby/blob/trunk/doc/syntax/modules_and_classes.rdoc#L120 === 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. Index: ChangeLog =================================================================== --- ChangeLog (revision 38704) +++ ChangeLog (revision 38705) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Jan 5 13:58:59 2013 Eric Hodel <drbrain@s...> + + * doc/syntax/modules_and_classes.rdoc: Improved description of methods + on a module or class as suggested by Tobias Buhlmann + Sat Jan 5 13:38:07 2013 Masaki Matsushita <glass.saga@g...> * string.c (rb_str_enumerate_lines): fix invalid byte sequence error -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/