Граф коммитов

197 Коммитов

Автор SHA1 Сообщение Дата
drbrain b7ae472b58 * doc/syntax/miscellaneous.rdoc: Added section on defined?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-19 00:52:57 +00:00
drbrain 1ecaf599ff * doc/syntax/assignment.rdoc (Local Variables and Methods): Made it
more clear that local variables are created by the parser, not
	  execution.  Thanks to John Hawthorn.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-19 00:27:45 +00:00
drbrain 6ff1653cf6 * doc/syntax/assignment.rdoc: Improved links
* doc/syntax/methods.rdoc:  ditto.

	* doc/syntax.rdoc:  Added link to assignment document


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-19 00:16:08 +00:00
drbrain d9d981b940 * doc/syntax/assignment.rdoc: Added a syntax document on assignment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-18 23:47:51 +00:00
drbrain 1d5a5c235f * doc/syntax/methods.rdoc: Added Array Decomposition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-18 05:15:44 +00:00
drbrain 66013dc6d0 * doc/syntax/miscellaneous.rdoc: Added Ending an Expression and
indentation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-17 01:21:28 +00:00
drbrain 1be8ac57ab * doc/syntax/control_expressions.rdoc: Added ? : ternary if
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-17 00:08:53 +00:00
drbrain 1eb9f71c3a * doc/syntax/miscellaneous.rdoc: Added documentation for alias, undef,
BEGIN, END.
* doc/syntax/modules_and_classes.rdoc (Constants):  Fixed unwrapped
  paragraph with trailing whitespace.
* doc/syntax/modules_and_classes.rdoc (Scope):  Added section pointing
  to alias and undef documentation.
* doc/syntax.rdoc:  Added link to miscellaneous section.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-16 23:36:46 +00:00
drbrain 038c535e18 * doc/syntax/control_expressions.rdoc (Flip-Flop): Added a section on
the flip-flop.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-16 22:50:54 +00:00
drbrain 9ceb50972f * doc/syntax/control_expressions.rdoc (if Expressions): Fixed markup
error.  Fixes #235 on github by FlyingFoX.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-16 22:00:02 +00:00
drbrain d86ee14c5a * doc/syntax/literals.rdoc (Strings): Fixed typo. Fixes #236 on
github by Doug Yun.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-16 21:54:31 +00:00
drbrain a06f22f915 * doc/syntax/control_expressions.rdoc: Omit optional "then" for if and
unless expressions.  Improved description of "a if a = 0.zero?"
  NameError.  Note that "do" for for loop is optional.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 18:54:54 +00:00
drbrain 4cf9fa309d * 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
2013-01-15 18:29:05 +00:00
drbrain 8113321482 * doc/syntax/methods.rdoc: Fixed link
* doc/syntax/modules_and_classes.rdoc:  Fixed link
* doc/syntax.rdoc:  Updated with links to the recently added pages


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 18:15:12 +00:00
drbrain d902101b32 * doc/syntax/control_expressions.rdoc (redo Statement): Added note
about retry.
	* doc/syntax/exceptions.rdoc:  Added retry statement


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 18:06:24 +00:00
drbrain e071e13068 * doc/syntax/control_expressions.rdoc: Added description of control
expressions in ruby.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 06:55:43 +00:00
drbrain 68b072bfba * doc/syntax/methods.rdoc (Method Names): Added method names including
operator methods.
* doc/syntax/methods.rdoc (Return Values):  Added note that assignment
  methods ignore return values.
* doc/syntax/precedence.rdoc:  Added document describing precedence.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 04:33:28 +00:00
drbrain 108f3acbe4 * doc/syntax/methods.rdoc (Block Argument): Added section on block
argument.  Thanks to Andy Lindeman.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 02:49:54 +00:00
drbrain ec2bdfc763 * doc/syntax/calling_methods.rdoc (Arguments): Added improved
introduction to arguments including passing style and lazy
  evaluation.  Thanks to Matt Aimonetti.
* doc/syntax/calling_methods.rdoc (Positional Arguments):  Added
  description for sending a message to a method with *arguments
* doc/syntax/calling_methods.rdoc (Default Positional Arguments):
  Added description.  Thanks to Andy Lindeman.
* doc/syntax/calling_methods.rdoc (Block Local Arguments):
  Added description of block locals.  Thanks to Justin Collins.
* doc/syntax/calling_methods.rdoc (Hash to Keyword Arguments):  Added
  section describing ** operator.  Thanks  to Justin Collins.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 02:48:49 +00:00
drbrain 17bc951fc5 * doc/syntax/calling_methods.rdoc (Receiver): Added :: as pointed out
by Tony Arcieri
* doc/syntax/calling_methods.rdoc (Block Argument):  Fixed { } block
  examples as pointed out by David Copeland.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 00:29:56 +00:00
drbrain eeee190882 * doc/syntax/methods.rdoc (Array/Hash Argument): Moved above Keyword
Arguments
* doc/syntax/methods.rdoc (Keyword Arguments):  Described ** for
  gathering arbitrary keyword arguments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 00:11:46 +00:00
drbrain c3319d991a * doc/syntax/calling_methods.rdoc: Added document describing method
calls.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-14 23:56:47 +00:00
drbrain 015997ecde * doc/syntax/modules_and_classes.rdoc: Fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-06 02:11:40 +00:00
drbrain ac67a2b6d4 * doc/syntax/modules_and_classes.rdoc: Added singleton classes
documentation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-05 20:35:30 +00:00
drbrain 4061f5b6fc * 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
2013-01-05 05:00:33 +00:00
drbrain a13aee62d2 * doc/syntax/modules_and_classes.rdoc: Added documentation of syntax
for Modules and Classes.
* doc/syntax/methods.rdoc:  Moved some text to the Modules and
  Classes syntax document.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-05 01:23:49 +00:00
drbrain 1da85070b0 * doc/syntax/methods.rdoc: Added return values and scope sections,
slightly modified from the original patch.  Fixes #227 from github by
  Dave Brown.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-04 23:39:48 +00:00
drbrain 4f7a6aafa5 * lib/rake/*: Updated to rake 0.9.6
* doc/rake/*:  ditto
* test/rake/*:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-21 02:34:37 +00:00
marcandre 542a12d673 * doc/syntax/methods.rdoc: rdoc fix, patch by Dave Brown
[github:222]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-19 09:05:44 +00:00
drbrain 8255e83912 * doc/syntax/literals.rdoc: Added 0d decimal format. Thanks Nobu!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-19 07:30:58 +00:00
drbrain d8cda04488 * doc/syntax/methods.rdoc: Fixed typo. Thanks to Josh Susser.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-19 07:19:59 +00:00
drbrain 2c0d2db5cb * doc/syntax/methods.rdoc: Add () around keyword arguments example for
consistency.  Thanks to Josh Susser.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-19 06:24:02 +00:00
drbrain aa233d3f33 * doc/syntax/literals.rdoc: Used simplified heredoc example that
doesn't include method definition.  Added heredoc with backticks.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-18 07:46:33 +00:00
drbrain 87f099d069 * doc/syntax/literals.rdoc: Added 0o octal integers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-18 02:48:35 +00:00
drbrain 73b244d0de * doc/syntax/methods.rdoc: Added a description of singleton methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-17 03:05:45 +00:00
drbrain 85d3d572fa * doc/.document: Added doc/syntax
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-17 02:36:30 +00:00
drbrain 29fd593475 * doc/syntax.rdoc: Added syntax guide table of contents
* doc/syntax/exceptions.rdoc:  Syntax guide for exceptions
* doc/syntax/literals.rdoc:  Syntax guide for literals
* doc/syntax/methods.rdoc:  Syntax guide for methods


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-17 02:26:15 +00:00
zzak 536ecb3477 commit typo: remove file from r38358
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-13 05:25:15 +00:00
drbrain 52d4a465a8 * common.mk: Added --pages-dir to rdoc creation. Now doc/ items show
up at top-level.
* .document:  Moved doc/* entries to doc/.document
* doc/.document:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 07:57:56 +00:00
zzak 65129f3a5d Remove file from r38201
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-07 07:10:10 +00:00
zzak a756aa75ea * doc/etc.rd: Removed stale documentation file
* ext/etc/etc.c:  Merged documentation from doc/etc.rd and updated
  rdoc, added documentation for Etc::Passwd and Etc::Group


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-07 07:08:06 +00:00
zzak 5452c2d625 * doc/forwardable.rd: Remove stale documentation file
* lib/forwardable.rb: Merge documentation from doc/forwardable.rd


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-07 04:08:29 +00:00
drbrain f8f5a9eb4e * .document: Add NEWS for `ri ruby:NEWS`
* NEWS:  Set format as rdoc
* doc/NEWS-1.8.7:  ditto
* doc/NEWS-1.9.1:  ditto
* doc/NEWS-1.9.2:  ditto
* doc/NEWS-1.9.3:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 19:12:03 +00:00
zzak 118d9f43c8 * doc/globals.rdoc: Add documentation file for magic globals
[ruby-core:29048] [Bug #3022]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 23:57:20 +00:00
drbrain b8903f88f4 * doc/re.rdoc: Fix spelling
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-24 21:54:50 +00:00
drbrain a60a58b183 * doc/re.rdoc: Completed wording in the description of the =~ operator.
[ruby-trunk - Bug #6529]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-08 23:17:00 +00:00
drbrain 5f85fcc11f * doc/re.rdoc (Performance): Replaced incorrect example of reducing
backtracking through anchoring with reduced backtracking through a
  range.  [ruby-trunk - Bug #6525]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-01 22:05:46 +00:00
drbrain 8424e37992 * doc/re.rdoc (Performance): Removed useless sample output from final
performance example and switched from #match to #=~ for consistency.
  [ruby-trunk - Bug #6524]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-01 21:35:05 +00:00
kazu 86716b9768 remove unbalanced parenthesis
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 03:50:02 +00:00
nobu 01d54bc2c7 * doc/re.rdoc (Repetition): fix typo. reported by Ori Avtalion
and patched by Zachary Scott.  [Bug #5947]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-01 00:50:17 +00:00