Tweak for ENV doc

This commit is contained in:
BurdetteLamar 2024-01-06 16:35:58 +00:00 committed by Peter Zhu
parent 4bdfc9070c
commit 54e8901f66

14
hash.c
View File

@ -7305,7 +7305,7 @@ Init_Hash(void)
* - ENV.replace replaces \ENV with a new collection of entries. * - ENV.replace replaces \ENV with a new collection of entries.
* - ENV.clear empties \ENV. * - ENV.clear empties \ENV.
* *
* == What's Here * === What's Here
* *
* First, what's elsewhere. \Class \ENV: * First, what's elsewhere. \Class \ENV:
* *
@ -7321,7 +7321,7 @@ Init_Hash(void)
* - {Converting}[rdoc-ref:ENV@Methods+for+Converting] * - {Converting}[rdoc-ref:ENV@Methods+for+Converting]
* - {And more ....}[rdoc-ref:ENV@More+Methods] * - {And more ....}[rdoc-ref:ENV@More+Methods]
* *
* === Methods for Querying * ==== Methods for Querying
* *
* - ::[]: Returns the value for the given environment variable name if it exists: * - ::[]: Returns the value for the given environment variable name if it exists:
* - ::empty?: Returns whether \ENV is empty. * - ::empty?: Returns whether \ENV is empty.
@ -7332,7 +7332,7 @@ Init_Hash(void)
* - ::size, ::length: Returns the number of entries. * - ::size, ::length: Returns the number of entries.
* - ::value?: Returns whether any entry has the given value. * - ::value?: Returns whether any entry has the given value.
* *
* === Methods for Assigning * ==== Methods for Assigning
* *
* - ::[]=, ::store: Creates, updates, or deletes the named environment variable. * - ::[]=, ::store: Creates, updates, or deletes the named environment variable.
* - ::clear: Removes every environment variable; returns \ENV: * - ::clear: Removes every environment variable; returns \ENV:
@ -7340,7 +7340,7 @@ Init_Hash(void)
* - ::replace: Replaces the entire content of the \ENV * - ::replace: Replaces the entire content of the \ENV
* with the name/value pairs in the given hash. * with the name/value pairs in the given hash.
* *
* === Methods for Deleting * ==== Methods for Deleting
* *
* - ::delete: Deletes the named environment variable name if it exists. * - ::delete: Deletes the named environment variable name if it exists.
* - ::delete_if: Deletes entries selected by the block. * - ::delete_if: Deletes entries selected by the block.
@ -7349,13 +7349,13 @@ Init_Hash(void)
* - ::select!, ::filter!: Deletes entries selected by the block. * - ::select!, ::filter!: Deletes entries selected by the block.
* - ::shift: Removes and returns the first entry. * - ::shift: Removes and returns the first entry.
* *
* === Methods for Iterating * ==== Methods for Iterating
* *
* - ::each, ::each_pair: Calls the block with each name/value pair. * - ::each, ::each_pair: Calls the block with each name/value pair.
* - ::each_key: Calls the block with each name. * - ::each_key: Calls the block with each name.
* - ::each_value: Calls the block with each value. * - ::each_value: Calls the block with each value.
* *
* === Methods for Converting * ==== Methods for Converting
* *
* - ::assoc: Returns a 2-element array containing the name and value * - ::assoc: Returns a 2-element array containing the name and value
* of the named environment variable if it exists: * of the named environment variable if it exists:
@ -7378,7 +7378,7 @@ Init_Hash(void)
* - ::values: Returns all values as an array. * - ::values: Returns all values as an array.
* - ::values_at: Returns an array of the values for the given name. * - ::values_at: Returns an array of the values for the given name.
* *
* === More Methods * ==== More Methods
* *
* - ::dup: Raises an exception. * - ::dup: Raises an exception.
* - ::freeze: Raises an exception. * - ::freeze: Raises an exception.