Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Array
/
//opt/alt/ruby27/share/ri/system/Array/push-i.ri
U:RDoc::AnyMethod[iI" push:ETI"Array#push;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"MAppend --- Pushes the given object(s) on to the end of this array. This ;TI"=expression returns the array itself, so several appends ;TI"Bmay be chained together. See also Array#pop for the opposite ;TI"effect.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"a = [ "a", "b", "c" ] ;TI"a.push("d", "e", "f") ;TI"0 #=> ["a", "b", "c", "d", "e", "f"] ;TI"[1, 2, 3].push(4).push(5) ;TI" #=> [1, 2, 3, 4, 5];T:@format0: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"?ary.push(obj, ...) -> ary ary.append(obj, ...) -> ary ;T0[[I"append;To;; [ ;@;0I"(*args);T@FI" Array;TcRDoc::NormalClass00