Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
opt
/
ruby-2.7
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Array
/
//proc/thread-self/root/proc/thread-self/root/opt/ruby-2.7/usr/share/ri/2.7.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