Related for Array#<<

This commit is contained in:
BurdetteLamar 2024-08-28 21:42:47 +01:00 committed by Peter Zhu
parent 570a95805a
commit ec88979a06
Notes: git 2024-08-28 20:51:51 +00:00

View File

@ -1373,6 +1373,7 @@ ary_take_first_or_last(int argc, const VALUE *argv, VALUE ary, enum ary_take_pos
* *
* [:foo, 'bar', 2] << [3, 4] # => [:foo, "bar", 2, [3, 4]] * [:foo, 'bar', 2] << [3, 4] # => [:foo, "bar", 2, [3, 4]]
* *
* Related: see {Methods for Assigning}[rdoc-ref:Array@Methods+for+Assigning].
*/ */
VALUE VALUE
@ -8617,7 +8618,8 @@ rb_ary_deconstruct(VALUE ary)
* These methods add, replace, or reorder elements in +self+. * These methods add, replace, or reorder elements in +self+.
* *
* - #[]=: Assigns specified elements with a given object. * - #[]=: Assigns specified elements with a given object.
* - #push, #append, #<<: Appends trailing elements. * - #<<: Appends an element.
* - #push (and its alias #append): Appends elements.
* - #unshift, #prepend: Prepends leading elements. * - #unshift, #prepend: Prepends leading elements.
* - #insert: Inserts given objects at a given offset; does not replace elements. * - #insert: Inserts given objects at a given offset; does not replace elements.
* - #concat: Appends all elements from given arrays. * - #concat: Appends all elements from given arrays.