D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Array
/
Filename :
delete_if-i.ri
back
Copy
U:RDoc::AnyMethod[iI"delete_if:ETI"Array#delete_if;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FWith a block given, calls the block with each element of +self+; ;TI">removes the element if the block returns a truthy value; ;TI"returns +self+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"!a = [:foo, 'bar', 2, 'bat'] ;TI"Ka.delete_if {|element| element.to_s.start_with?('b') } # => [:foo, 2] ;T:@format0o; ; [I"3With no block given, returns a new Enumerator.;T@o; ; [I"NRelated: see {Methods for Deleting}[rdoc-ref:Array@Methods+for+Deleting].;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"Cdelete_if {|element| ... } -> self delete_if -> new_numerator ;T0[ I"();T@FI" Array;TcRDoc::NormalClass00