method

deprecate

ruby latest stable - Class: Gem::Deprecate
deprecate(name, repl, year, month)
private

Simple deprecation method that deprecates name by wrapping it up in a dummy method. It warns on each call to the dummy method telling the user of repl (unless repl is :none) and the year/month that it is planned to go away.