1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/doc
Jeremy Evans f53dfab95c Add support for anonymous rest and keyword rest argument forwarding
This allows for the following syntax:

```ruby
def foo(*)
  bar(*)
end
def baz(**)
  quux(**)
end
```

This is a natural addition after the introduction of anonymous
block forwarding.  Anonymous rest and keyword rest arguments were
already supported in method parameters, this just allows them to
be used as arguments to other methods.  The same advantages of
anonymous block forwarding apply to rest and keyword rest argument
forwarding.

This has some minor changes to #parameters output.  Now, instead
of `[:rest], [:keyrest]`, you get `[:rest, :*], [:keyrest, :**]`.
These were already used for `...` forwarding, so I think it makes
it more consistent to include them in other cases.  If we want to
use `[:rest], [:keyrest]` in both cases, that is also possible.

I don't think the previous behavior of `[:rest], [:keyrest]` in
the non-... case and `[:rest, :*], [:keyrest, :**]` in the ...
case makes sense, but if we did want that behavior, we'll have to
make more substantial changes, such as using a different ID in the
... forwarding case.

Implements [Feature #18351]
2021-12-30 14:37:42 -08:00
..
csv [ruby/csv] fix typo conveters => converters for CSV parsing docs (#196) 2020-12-27 15:27:03 +09:00
images
irb [ruby/irb] Add doc about "echo on assignment" 2021-09-27 03:23:48 +09:00
optparse [ruby/optparse] Remove an errant { character (https://github.com/ruby/optparse/pull/26) 2021-07-28 20:13:39 +09:00
pty
syntax Add support for anonymous rest and keyword rest argument forwarding 2021-12-30 14:37:42 -08:00
time What's Here for class Dir (#4472) 2021-05-07 15:14:08 -05:00
yjit update YJIT docs to reference RubyVM::YJIT instead of just YJIT 2021-11-24 20:23:22 -05:00
.document
bsearch.rdoc Bsearch doc for Array and Range (#4838) 2021-09-14 16:08:21 -05:00
bug_triaging.rdoc
case_mapping.rdoc Enhanced RDoc for case mapping (#5245) 2021-12-17 06:05:31 -06:00
ChangeLog-0.06_to_0.52
ChangeLog-0.50_to_0.60
ChangeLog-0.60_to_1.1 Fix typos in ChangeLog files [ci skip] 2021-11-02 19:17:37 +09:00
ChangeLog-1.8.0
ChangeLog-1.9.3 Fix typos [ci skip] 2021-11-04 12:58:09 +09:00
ChangeLog-2.0.0 Revert "Fix typo in ChangeLog-2.0.0 [ci skip]" 2021-11-07 13:13:32 +09:00
ChangeLog-2.1.0
ChangeLog-2.2.0
ChangeLog-2.3.0
ChangeLog-2.4.0 Fix typos in ChangeLog files [ci skip] 2021-11-02 19:17:37 +09:00
ChangeLog-YARV Fix typos in ChangeLog files [ci skip] 2021-11-02 19:17:37 +09:00
contributing.rdoc Move platform maintainers list 2021-09-28 15:50:38 +09:00
dig_methods.rdoc
documentation_guide.rdoc Doc guide for class/module (#4600) 2021-07-18 18:43:34 -04:00
dtrace_probes.rdoc [DOC] Marked dtrace arguments as description list [ci skip] 2020-12-19 15:34:37 +09:00
extension.ja.rdoc [DOC] Mention RBOOL in extension.rdoc [Feature #13125] 2021-12-13 13:21:53 +09:00
extension.rdoc Add description of ruby header files to extension.rdoc 2021-12-16 20:10:55 +09:00
fiber.md Mark IO::Buffer as experimental. 2021-11-10 19:21:05 +13:00
forwardable.rd.ja
globals.rdoc
hacking.md Fix code formatting. 2021-12-18 23:10:42 +13:00
implicit_conversion.rdoc
keywords.rdoc doc/keywords.rdoc: fix typo 2020-12-24 11:30:30 +01:00
maintainers.rdoc Move platform maintainers list 2021-09-28 15:50:38 +09:00
make_cheatsheet.md Use ./autogen.sh instead of autoconf in doc 2021-09-11 12:29:59 +09:00
marshal.rdoc [DOC] fix small mistake in doc/marshal.rdoc [ci skip] 2021-10-03 11:09:08 +09:00
memory_view.md memory_view.c: Rename private to private_data for C++ (#4812) 2021-09-06 16:01:52 +09:00
NEWS-1.8.7
NEWS-1.9.1
NEWS-1.9.2
NEWS-1.9.3
NEWS-2.0.0 Fix typo of namespace 2021-12-09 18:15:52 +09:00
NEWS-2.1.0 [DOC] Fix grammar: "is same as" -> "is the same as" 2021-01-05 15:13:53 +01:00
NEWS-2.2.0 [DOC] Fix grammar: "is same as" -> "is the same as" 2021-01-05 15:13:53 +01:00
NEWS-2.3.0
NEWS-2.4.0
NEWS-2.5.0 Fix typo in NEWS-2.5.0 [ci skip] 2021-12-09 12:28:42 +09:00
NEWS-2.6.0
NEWS-2.7.0 Add File.absolute_path? to NEWS-2.7.0 [ci skip] 2021-02-01 14:01:47 +09:00
NEWS-3.0.0.md [DOC] Fix broken links [ci skip] 2021-09-15 14:16:14 +09:00
NEWS-3.1.0.md Expand URL to its canonical form [ci skip] 2021-12-28 10:23:46 +09:00
ractor.md Fix Typo 2021-10-26 13:10:49 -04:00
regexp.rdoc Update Capturing and Anchors sections of regexp documention 2021-07-27 12:30:43 -07:00
security.rdoc
signals.rdoc
standard_library.rdoc Promote net-smtp to the bundled gems 2021-05-27 14:42:11 +09:00
syntax.rdoc
yarvarch.en
yarvarch.ja