зеркало из https://github.com/github/ruby.git
[DOC] Rationalize aliases in What's Here
This commit is contained in:
Родитель
22f12b0a62
Коммит
ccd35eaecf
8
struct.c
8
struct.c
|
@ -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+.
|
||||
*
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче