[DOC] Adjust argument unpacking docs and document **nil (#12228)

[DOC] Rewrite argument unpacking docs and document **nil
This commit is contained in:
Victor Shepelev 2024-12-15 21:53:39 +02:00 committed by GitHub
parent 16b84b72a4
commit 1ac28224e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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

View file

@ -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