⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.13
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Array
/
View File Name :
delete-i.ri
U:RDoc::AnyMethod[iI"delete:ETI"Array#delete;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"?Removes zero or more elements from +self+; returns +self+.;To:RDoc::Markup::BlankLine o; ; [I"When no block is given, ;TI"Kremoves from +self+ each element +ele+ such that <tt>ele == obj</tt>; ;TI"&returns the last deleted element:;To:RDoc::Markup::Verbatim; [ I"s1 = 'bar'; s2 = 'bar' ;TI"a = [:foo, s1, 2, s2] ;TI" a.delete('bar') # => "bar" ;TI"a # => [:foo, 2] ;T:@format0o; ; [I"*Returns +nil+ if no elements removed.;T@o; ; [I"When a block is given, ;TI"Jremoves from +self+ each element +ele+ such that <tt>ele == obj</tt>.;T@o; ; [I"7If any such elements are found, ignores the block ;TI"*and returns the last deleted element:;To;; [ I"s1 = 'bar'; s2 = 'bar' ;TI"a = [:foo, s1, 2, s2] ;TI"Adeleted_obj = a.delete('bar') {|obj| fail 'Cannot happen' } ;TI"a # => [:foo, 2] ;T; 0o; ; [I"EIf no such elements are found, returns the block's return value:;To;; [I"a = [:foo, 'bar', 2] ;TI"Ja.delete(:nosuch) {|obj| "#{obj} not found" } # => "nosuch not found";T; 0: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"marray.delete(obj) -> deleted_object array.delete(obj) {|nosuch| ... } -> deleted_object or block_return ;T0[ I" (p1);T@2FI" Array;TcRDoc::NormalClass00