summaryrefslogtreecommitdiff
path: root/doc/syntax
AgeCommit message (Collapse)Author
2017-12-08doc/syntax/refinements.rdoc: fix typosstomar
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-03Specify refinement inheritance by Module#include.shugo
[ruby-core:79880] [Bug #13271] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-07refinements.rdoc: improve docsstomar
* doc/syntax/refinements.rdoc: [DOC] fix typos and grammar and remove superfluous "for the first time". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-22doc/syntax/methods.rdoc: fix a misleading examplerhe
As a bonus, wrap a long line added by r60295. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-21* remove trailing spaces.svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-21Clarify return value for assignment methods.hsbt
https://github.com/ruby/ruby/pull/1682 Patch by @sos4nt [fix GH-1682] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-06-23refinements.rdoc: [DOC] improved [Fix GH-1659]nobu
* doc/syntax/refinements.rdocrefinements.rdoc: grammatical correction and code highlighting improved * doc/syntax/refinements.rdocrefinements.rdoc: Fixnum replaced with Integer and Integer with Numeric Author: Shiva Bhusal <shivabhusal@users.noreply.github.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-03-29methods.rdoc: small improvementsstomar
* doc/syntax/methods.rdoc: [DOC] small improvements: fix some typos, grammar, punctuation, consistently use capitalized "Ruby". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-02-03doc: Fix error for escape sequences in string literalsnormal
Backslash goes first in escape sequences, so it must be "any other character following a backslash is interpreted as ...", while the doc says "...followed by...". Author: Marcus Stollsteimer <sto.mar@web.de> [ruby-core:79418] [Bug #13190] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-30* doc/syntax/control_expressions.rdoc: Add missing 'as'hsbt
[ci skip][fix GH-1448] Patch by @jsyeo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-11Use https instead of http in some URLskazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-21methods.rdoc: closing tagnobu
* doc/syntax/methods.rdoc (Method Names): add proper closing tag. [Fix GH-1356] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-30* doc/syntax/calling_methods.rdoc: fix old operator for safe navigationhsbt
operator. [ci skip][fix GH-1182] Patch by @dougo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-18* doc/syntax/*.rdoc: separated modifier at sentence.hsbt
[ci skip][fix GH-1121] Patch by @clandry94 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-09* doc/syntax/refinements.rdoc: remove outdated description.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-07parse.y: indented hereocnobu
* parse.y: add heredoc <<~ syntax. [Feature #9098] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-18* doc/syntax/refinements.rdoc: update documentation to reflectshugo
recent changes. [ci skip] [ruby-core:71466] [Misc #11681] Patch by James Adam git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-23* NEWS: [DOC] In the new safe call syntax, arguments are evaluatedknu
only if a call is made. * doc/syntax/calling_methods.rdoc: Fix a typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-22Safe navigation operatornobu
* compile.c (iseq_peephole_optimize): peephole optimization for branchnil jumps. * compile.c (iseq_compile_each): generate save navigation operator code. * insns.def (branchnil): new opcode to pop the tos and branch if it is nil. * parse.y (NEW_QCALL, call_op, parser_yylex): parse token '.?'. [Feature #11537] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16[DOC] Remove `\0` since it's aprt of octal notationknu
A typo is fixed while at it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16[DOC] `\0` is interpreted as NUL only if not followed by an octal digit.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16literals.rdoc: add DEL [ci skip]nobu
* doc/syntax/literals.rdoc (Strings): [DOC] add DEL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16[DOC] Revise the character literal part.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16[DOC] Document the full list of supported escape sequences in string literalsknu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16literals.rdoc: fix typosnobu
* doc/syntax/literals.rdoc (Strings): fix typos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16* doc/syntax/literals.rdoc (Strings): mention about ?a literal.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-08* doc/syntax/control_expressions.rdoc: fix a missing "a"hsbt
[fix GH-888][ci skip] Patch by @riffraff git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-15* doc/contributors.rdoc: fix a typo. Patch by @davydovantonhsbt
[fix GH-872][ci skip] * doc/syntax/methods.rdoc: ditto. * ext/digest/sha2/sha2.c: ditto. * ext/socket/ipsocket.c: ditto. * ext/tk/*: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04* doc/syntax/methods.rdoc: add some missing spaces andhsbt
fix a grammatical error in method docs. [fix GH-843][ci skip] Patch by @nikolas git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-17* doc/syntax/calling_methods.rdoc: Fix documentation for "calling_methods"hsbt
Patch by @sos4nt [fix GH-830][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-29doc/syntax/literals.rdoc: spelling fixnormal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-29literals.rdoc: quoted symbol keysnobu
* doc/syntax/literals.rdoc (Hashes): describe about quoted symbol keys. [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-29literals.rdoc: Update for symbol literalsnobu
* doc/syntax/literals.rdoc (Symbols): now Symbols created by interpolation can be garbage collected. patch by Yihang Ho in [ruby-core:67194]. [Bug #10671] [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-01* doc/syntax/refinements.rdoc: refinements are no longer experimental.hsbt
patch by @gaurish [fix GH-755][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-23doc: remove trailing spacesnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-22* doc/syntax/methods.rdoc: [DOC] [] and []= methods by @processzzak
[Fixes GH-662] https://github.com/ruby/ruby/pull/662 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-02* doc/syntax/assignment.rdoc: [DOC] Fix typo unclosed HTML tag by @andrewdotnhsbt
[fix GH-574][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-14* doc/syntax/literals.rdoc: [DOC] Single quote strings allows escapezzak
of backslash as well, patch by @idupree [Fixes GH-553] [ci skip] https://github.com/ruby/ruby/pull/553 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-06* doc/syntax/assignment.rdoc: [DOC] Fix assignment directions [ci skip]zzak
By @idupree [Fixes GH-555] https://github.com/ruby/ruby/pull/555 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-06* doc/syntax/methods.rdoc: [DOC] Fix example for block arguments [ci skip]zzak
By @idupree [Fixes GH-554] https://github.com/ruby/ruby/pull/554 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-21* doc/syntax/refinements.rdoc: typo fix by @skade [fix GH-508]hsbt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-22* doc/syntax/methods.rdoc: [DOC] Added example for underscorezzak
conventions in method names. Also added doc to clarify encoding character set support for Ruby programs and elaborated on defining predicate and bang methods. Based on a patch by @gaurish [Fixes GH-477] https://github.com/ruby/ruby/pull/477 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-10* doc/contributing.rdoc: [DOC] curses is no more in the stdliba_matsuda
* doc/contributors.rdoc: Ditto. * doc/maintainers.rdoc: Ditto. * doc/contributors.rdoc: Ditto. * doc/standard_library.rdoc: Ditto. * doc/syntax/modules_and_classes.rdoc: Ditto. * encoding.c: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-12* doc/syntax/literals.rdoc: [DOC] String literal concat by @cknadlerzzak
[Fixes GH-380] https://github.com/ruby/ruby/pull/380 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-10* doc/syntax/literals.rdoc: Use single quotes instead of double quotescharliesome
[Bug #8766] [ruby-core:56514] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-02* doc/syntax/refinements.rdoc: Remove mention of instance_eval anddrbrain
module_eval from scope section per: http://twitter.com/shugomaeda/status/363219951336693761 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-02* doc/syntax/refinements.rdoc: Improve description of where you maydrbrain
activate refinements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02* doc/syntax/refinements.rdoc: add description of Module#using andshugo
refinement inheritance by module inclusion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05* doc/syntax/refinements.rdoc : Fix a missing quoteeregon
Patch by Robin Dupret. [Fix GH-271] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24* doc/syntax/calling_methods.rdoc: Added a Method Lookup section.drbrain
* doc/syntax/refinements.rdoc (Method Lookup): Clarified that refinement methods are looked up in classes, not instances. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e