[前][次][番号順一覧][スレッド一覧]

ruby-changes:26791

From: drbrain <ko1@a...>
Date: Wed, 16 Jan 2013 03:29:23 +0900 (JST)
Subject: [ruby-changes:26791] drbrain:r38843 (trunk): * doc/syntax/calling_methods.rdoc: Link to defining methods.

drbrain	2013-01-16 03:29:05 +0900 (Wed, 16 Jan 2013)

  New Revision: 38843

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38843

  Log:
    * doc/syntax/calling_methods.rdoc:  Link to defining methods.
    * doc/syntax/methods.rdoc:  Link to calling methods, fixed typo.

  Modified files:
    trunk/ChangeLog
    trunk/doc/syntax/calling_methods.rdoc
    trunk/doc/syntax/methods.rdoc

Index: doc/syntax/calling_methods.rdoc
===================================================================
--- doc/syntax/calling_methods.rdoc	(revision 38842)
+++ doc/syntax/calling_methods.rdoc	(revision 38843)
@@ -13,6 +13,9 @@ Note that the parenthesis are optional: https://github.com/ruby/ruby/blob/trunk/doc/syntax/calling_methods.rdoc#L13
 Except when there is difference between using and omitting parentheses, this
 document uses parenthesis when arguments are present to avoid confusion.
 
+This section only covers calling methods.  See also the {syntax documentation
+on defining methods}[rdoc-ref:syntax/methods.rdoc].
+
 == Receiver
 
 +self+ is the default receiver.  If you don't specify any receiver +self+ will
Index: doc/syntax/methods.rdoc
===================================================================
--- doc/syntax/methods.rdoc	(revision 38842)
+++ doc/syntax/methods.rdoc	(revision 38843)
@@ -11,6 +11,9 @@ A method definition consists of the +def https://github.com/ruby/ruby/blob/trunk/doc/syntax/methods.rdoc#L11
 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. https://github.com/ruby/ruby/blob/trunk/doc/syntax/methods.rdoc#L72
 <code>>=</code>  :: greater-than or equal
 
 To define unary methods minus, plus, tilde and not (<code>!</code>) follow the
-operator with an <code>@</code> as in <code>+@</code> or <code>!@<code>:
+operator with an <code>@</code> as in <code>+@</code> or <code>!@</code>:
 
   class C
     def -@
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38842)
+++ ChangeLog	(revision 38843)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jan 16 03:28:47 2013  Eric Hodel  <drbrain@s...>
+
+	* doc/syntax/calling_methods.rdoc:  Link to defining methods.
+	* doc/syntax/methods.rdoc:  Link to calling methods, fixed typo.
+
 Wed Jan 16 03:15:00 2013  Eric Hodel  <drbrain@s...>
 
 	* doc/syntax/methods.rdoc:  Fixed link

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]