Project

General

Profile

Actions

Feature #14887

closed

Array#delete_if does not use #delete

Added by sdaubert (Sylvain Daubert) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
-
[ruby-core:87717]

Description

When a class inherits from Array, and its #delete methods is modified, #delete_if and #reject! do not call this method. From sources, its an internal C method which is called instead.

Is there a way to modify #delete_if and #reject! to use #delete? This would ease inheriting of Array class.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0