Project

General

Profile

Feature #16018

Add a way to deprecate methods

Added by vo.x (Vit Ondruch) about 1 year ago. Updated about 1 year ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:93902]

Description

Since #11398, We have Module#deprecate_constant available. But I wonder, why we don't have a way to deprecate methods? There is already Gem::Deprecate 1, so may be this could be extracted and made more generic?

This might be useful on several places in Ruby code:

$ find . -name \*.rb -type f -exec grep -r '[^_]warn.*deprecate' {} \; | wc -l
66

Related issues

Related to Ruby master - Feature #16345: Don't emit deprecation warnings by default.ClosedActions

Also available in: Atom PDF