Project

General

Profile

Actions

Feature #16018

open

Add a way to deprecate methods

Added by vo.x (Vit Ondruch) over 5 years ago. Updated about 5 years ago.

Status:
Open
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 1 (0 open1 closed)

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

Also available in: Atom PDF

Like0
Like0Like0Like0