--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Deletes items from self that are equal to obj. If the item is not found, returns nil. If the optional code block is given, returns the result of block if the item is not found. - !ruby/struct:SM::Flow::VERB body: " a = [ "a", "b", "b", "b", "c" ]\n a.delete("b") #=> "b"\n a #=> ["a", "c"]\n a.delete("z") #=> nil\n a.delete("z") { "not found" } #=> "not found"\n" full_name: Array#delete is_singleton: false name: delete params: | array.delete(obj) -> obj or nil array.delete(obj) { block } -> obj or nil visibility: public