D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Array
/
Filename :
delete_if-i.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Deletes every element of <em>self</em> for which <em>block</em> evaluates to <tt>true</tt>. - !ruby/struct:SM::Flow::VERB body: " a = [ "a", "b", "c" ]\n a.delete_if {|x| x >= "b" } #=> ["a"]\n" full_name: Array#delete_if is_singleton: false name: delete_if params: | array.delete_if {|item| block } -> array visibility: public