shugo
46425732cf
* doc/syntax/refinements.rdoc: update documentation to reflect
...
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-11-18 01:08:19 +00:00
knu
1b5dce5a4e
* NEWS: [DOC] In the new safe call syntax, arguments are evaluated
...
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-23 16:53:41 +00:00
nobu
a356fe1c35
Safe navigation operator
...
* 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-10-22 06:30:12 +00:00
knu
11b804feee
[DOC] Remove `\0` since it's aprt of octal notation
...
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 06:58:56 +00:00
knu
5ac401c8dc
[DOC] `\0` is interpreted as NUL only if not followed by an octal digit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:31:39 +00:00
nobu
2b89d63e61
literals.rdoc: add DEL [ci skip]
...
* 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 06:21:13 +00:00
knu
6989f24117
[DOC] Revise the character literal part.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:16:15 +00:00
knu
d23857e558
[DOC] Document the full list of supported escape sequences in string literals
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:03:18 +00:00
nobu
22190b3f32
literals.rdoc: fix typos
...
* 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 05:31:26 +00:00
usa
35947f6d42
* doc/syntax/literals.rdoc (Strings): mention about ?a literal.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 04:24:31 +00:00
hsbt
f266d21f65
* doc/syntax/control_expressions.rdoc: fix a missing "a"
...
[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-05-08 06:06:03 +00:00
hsbt
d9a2b3480e
* doc/contributors.rdoc: fix a typo. Patch by @davydovanton
...
[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-04-15 01:37:47 +00:00
hsbt
c5e9d76221
* doc/syntax/methods.rdoc: add some missing spaces and
...
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-03-04 01:15:43 +00:00
hsbt
23b9356a0e
* doc/syntax/calling_methods.rdoc: Fix documentation for "calling_methods"
...
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
2015-02-17 02:04:02 +00:00
normal
12c2ad515e
doc/syntax/literals.rdoc: spelling fix
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-29 16:54:32 +00:00
nobu
d1e65737f6
literals.rdoc: quoted symbol keys
...
* 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-29 05:29:28 +00:00
nobu
25dddf158c
literals.rdoc: Update for symbol literals
...
* 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-29 05:27:36 +00:00
hsbt
6ec023e568
* doc/syntax/refinements.rdoc: refinements are no longer experimental.
...
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-12-01 01:42:38 +00:00
nobu
1a65cef0f0
doc: remove trailing spaces
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-23 00:13:32 +00:00
zzak
f13f9f6946
* doc/syntax/methods.rdoc: [DOC] [] and []= methods by @process
...
[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-09-22 10:50:52 +00:00
hsbt
b3b9b6e5f7
* doc/syntax/assignment.rdoc: [DOC] Fix typo unclosed HTML tag by @andrewdotn
...
[fix GH-574][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-02 05:55:44 +00:00
zzak
cac997eb95
* doc/syntax/literals.rdoc: [DOC] Single quote strings allows escape
...
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-14 03:09:17 +00:00
zzak
bfce381eb7
* doc/syntax/assignment.rdoc: [DOC] Fix assignment directions [ci skip]
...
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 06:16:35 +00:00
zzak
31fa4d8899
* doc/syntax/methods.rdoc: [DOC] Fix example for block arguments [ci skip]
...
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-03-06 06:08:40 +00:00
hsbt
fb69a11710
* doc/syntax/refinements.rdoc: typo fix by @skade [fix GH-508]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-21 12:00:08 +00:00
zzak
573762a7b7
* doc/syntax/methods.rdoc: [DOC] Added example for underscore
...
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-22 20:13:09 +00:00
a_matsuda
02c8545037
* doc/contributing.rdoc: [DOC] curses is no more in the stdlib
...
* 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-12-10 11:22:13 +00:00
zzak
077fa24833
* doc/syntax/literals.rdoc: [DOC] String literal concat by @cknadler
...
[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-12 23:54:38 +00:00
charliesome
a5c3ca07f8
* doc/syntax/literals.rdoc: Use single quotes instead of double quotes
...
[Bug #8766 ] [ruby-core:56514]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-10 20:56:13 +00:00
drbrain
be5a436f13
* doc/syntax/refinements.rdoc: Remove mention of instance_eval and
...
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 19:24:14 +00:00
drbrain
c0d4ba9f40
* doc/syntax/refinements.rdoc: Improve description of where you may
...
activate refinements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-02 00:14:58 +00:00
shugo
9487404c62
* doc/syntax/refinements.rdoc: add description of Module#using and
...
refinement inheritance by module inclusion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 08:24:26 +00:00
eregon
96e14ad252
* doc/syntax/refinements.rdoc : Fix a missing quote
...
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-05-05 11:49:53 +00:00
drbrain
dbcf20069a
* doc/syntax/calling_methods.rdoc: Added a Method Lookup section.
...
* 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
2013-01-24 07:54:45 +00:00
drbrain
30a9931bbc
* doc/syntax/refinements.rdoc: Added refinements document based on
...
the specification from the wiki.
* doc/syntax.rdoc: Added link to refinements document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 00:40:49 +00:00
drbrain
596ed9c781
* doc/syntax/assignment.rdoc (Implicit Array Assignment): Clarify
...
that "left-hand side" means "of the assignment". Suggested by Jorge
Dias.
* doc/syntax/assignment.rdoc (Multiple Assignment): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-23 01:41:37 +00:00
drbrain
2784129653
* doc/syntax/assignment.rdoc (Local Variables and Methods): Fixed
...
example showing caching of a method's results into a local variable.
Added not about using an explicit receiver to call a method that
matches a local variable. Suggested by markov_twain on twitter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-23 01:35:16 +00:00
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