From 4cf9fa309d0f561f9dacaeebffa7dee9d6f40f01 Mon Sep 17 00:00:00 2001 From: drbrain Date: Tue, 15 Jan 2013 18:29:05 +0000 Subject: * doc/syntax/calling_methods.rdoc: Link to defining methods. * doc/syntax/methods.rdoc: Link to calling methods, fixed typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- doc/syntax/methods.rdoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/syntax/methods.rdoc') diff --git a/doc/syntax/methods.rdoc b/doc/syntax/methods.rdoc index 28311d1af6..d5d0ea402d 100644 --- a/doc/syntax/methods.rdoc +++ b/doc/syntax/methods.rdoc @@ -11,6 +11,9 @@ A method definition consists of the +def+ keyword, a method name, the body of the method, then the +end+ keyword. When called the method will execute the body of the method. This method returns +2+. +This section only covers defining methods. See also the {syntax documentation +on calling methods}[rdoc-ref:syntax/calling_methods.rdoc]. + == Method Names Method names may be one of the operators or must start a letter or a character @@ -69,7 +72,7 @@ operators. >= :: greater-than or equal To define unary methods minus, plus, tilde and not (!) follow the -operator with an @ as in +@ or !@: +operator with an @ as in +@ or !@: class C def -@ -- cgit v1.2.3