ruby-changes:26828
From: drbrain <ko1@a...>
Date: Sat, 19 Jan 2013 09:17:03 +0900 (JST)
Subject: [ruby-changes:26828] drbrain:r38880 (trunk): * doc/syntax/assignment.rdoc: Improved links
drbrain 2013-01-19 09:16:08 +0900 (Sat, 19 Jan 2013) New Revision: 38880 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38880 Log: * doc/syntax/assignment.rdoc: Improved links * doc/syntax/methods.rdoc: ditto. * doc/syntax.rdoc: Added link to assignment document Modified files: trunk/ChangeLog trunk/doc/syntax/assignment.rdoc trunk/doc/syntax/methods.rdoc trunk/doc/syntax.rdoc Index: doc/syntax/methods.rdoc =================================================================== --- doc/syntax/methods.rdoc (revision 38879) +++ doc/syntax/methods.rdoc (revision 38880) @@ -409,6 +409,6 @@ May be written as: https://github.com/ruby/ruby/blob/trunk/doc/syntax/methods.rdoc#L409 end If you wish to rescue an exception for only part of your method use +begin+ and -+end+. For more details see the page on {Exception -Handling}[rdoc-ref:syntax/exceptions.rdoc]. ++end+. For more details see the page on {exception +handling}[rdoc-ref:syntax/exceptions.rdoc]. Index: doc/syntax/assignment.rdoc =================================================================== --- doc/syntax/assignment.rdoc (revision 38879) +++ doc/syntax/assignment.rdoc (revision 38880) @@ -57,7 +57,8 @@ This prints: https://github.com/ruby/ruby/blob/trunk/doc/syntax/assignment.rdoc#L57 You may isolate variables in a block from the outer scope by listing them following a <code>;</code> in the block's arguments. See the documentation -for {calling methods}[rdoc-ref:syntax/calling_methods.rdoc] for an example. +for block local variables in the {calling +methods}[rdoc-ref:syntax/calling_methods.rdoc] documentation for an example. See also Kernel#local_variables, but note that a +for+ loop does not create a new scope like a block does. @@ -416,8 +417,8 @@ But you may only use one <code>*</code> https://github.com/ruby/ruby/blob/trunk/doc/syntax/assignment.rdoc#L417 == Array Decomposition -As with {method arguments}[rdoc-ref:syntax/methods.rdoc] you can decompose an -Array using parenthesis: +Like Array decomposition in {method arguments}[rdoc-ref:syntax/methods.rdoc] +you can decompose an Array during assignment using parenthesis: (a, b) = [1, 2] Index: doc/syntax.rdoc =================================================================== --- doc/syntax.rdoc (revision 38879) +++ doc/syntax.rdoc (revision 38880) @@ -5,6 +5,9 @@ The Ruby syntax is large and is split up https://github.com/ruby/ruby/blob/trunk/doc/syntax.rdoc#L5 Literals[rdoc-ref:syntax/literals.rdoc] :: Numbers, Strings, Arrays, Hashes, etc. +Assignment[rdoc-ref:syntax/assignment.rdoc] :: + Assignment and variables + {Control Expressions}[rdoc-ref:syntax/control_expressions.rdoc] :: +if+, +unless+, +while+, +until+, +for+, +break+, +next+, +redo+ Index: ChangeLog =================================================================== --- ChangeLog (revision 38879) +++ ChangeLog (revision 38880) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Jan 19 09:15:58 2013 Eric Hodel <drbrain@s...> + + * doc/syntax/assignment.rdoc: Improved links + * doc/syntax/methods.rdoc: ditto. + + * doc/syntax.rdoc: Added link to assignment document + Sat Jan 19 08:47:33 2013 Eric Hodel <drbrain@s...> * doc/syntax/assignment.rdoc: Added a syntax document on assignment. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/