⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
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
ele == obj
; ;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
ele == obj
.;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