diff options
author | BurdetteLamar <[email protected]> | 2024-08-31 18:11:50 +0100 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-09-10 14:00:00 -0400 |
commit | ccd35eaecf7604a9c2edc4a6d9eab5fa8c527cab (patch) | |
tree | 57679aa950bbffa5d970e645c801bfe781c7621d /struct.c | |
parent | 22f12b0a62c512f115cd60d4192e53921b11f0c7 (diff) |
[DOC] Rationalize aliases in What's Here
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11518
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2131,7 +2131,7 @@ rb_data_inspect(VALUE s) * === Methods for Querying * * - #hash: Returns the integer hash code. - * - #length, #size: Returns the number of members. + * - #size (aliased as #length): Returns the number of members. * * === Methods for Comparing * @@ -2143,13 +2143,13 @@ rb_data_inspect(VALUE s) * === Methods for Fetching * * - #[]: Returns the value associated with a given member name. - * - #to_a, #values, #deconstruct: Returns the member values in +self+ as an array. + * - #to_a (aliased as #values, #deconstruct): Returns the member values in +self+ as an array. * - #deconstruct_keys: Returns a hash of the name/value pairs * for given member names. * - #dig: Returns the object in nested objects that is specified * by a given member name and additional arguments. * - #members: Returns an array of the member names. - * - #select, #filter: Returns an array of member values from +self+, + * - #select (aliased as #filter): Returns an array of member values from +self+, * as selected by the given block. * - #values_at: Returns an array containing values for given member names. * @@ -2164,7 +2164,7 @@ rb_data_inspect(VALUE s) * * === Methods for Converting * - * - #inspect, #to_s: Returns a string representation of +self+. + * - #inspect (aliased as #to_s): Returns a string representation of +self+. * - #to_h: Returns a hash of the member name/value pairs in +self+. * */ |