mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Adjust argument unpacking docs and document **nil (#12228)
[DOC] Rewrite argument unpacking docs and document **nil
This commit is contained in:
parent
16b84b72a4
commit
1ac28224e0
Notes:
git
2024-12-15 19:53:56 +00:00
Merged-By: zverok <zverok.offline@gmail.com>
2 changed files with 92 additions and 4 deletions
4
object.c
4
object.c
|
@ -1357,6 +1357,10 @@ rb_obj_frozen_p(VALUE obj)
|
|||
* - #to_r
|
||||
* - #to_s
|
||||
*
|
||||
* While +nil+ doesn't have an explicitly defined #to_hash method,
|
||||
* it can be used in <code>**</code> unpacking, not adding any
|
||||
* keyword arguments.
|
||||
*
|
||||
* Another method provides inspection:
|
||||
*
|
||||
* - #inspect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue