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
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Array
/
//opt/alt/ruby21/share/ri/2.1.0/system/Array/pop-i.ri
U:RDoc::AnyMethod[iI"pop:ETI"Array#pop;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"=Removes the last element from +self+ and returns it, or ;TI"!+nil+ if the array is empty.;To:RDoc::Markup::BlankLine o; ; [I"IIf a number +n+ is given, returns an array of the last +n+ elements ;TI"I(or less) just like <code>array.slice!(-n, n)</code> does. See also ;TI"(Array#push for the opposite effect.;T@o:RDoc::Markup::Verbatim; [ I" a = [ "a", "b", "c", "d" ] ;TI"a.pop #=> "d" ;TI"a.pop(2) #=> ["b", "c"] ;TI"a #=> ["a"];T:@format0: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"4ary.pop -> obj or nil ary.pop(n) -> new_ary ;T0[ I"(*args);T@FI" Array;TcRDoc::NormalClass00