Does Ruby have built in functionality or a convention for marking a
method as deprecated? Something like ActiveSupport’s deprecate method
is what I have in mind, but more general.
http://ryandaigle.com/articles/2006/07/28/whats-new-in-edge-rails-explicit-deprecation
On Feb 27, 2008, at 16:41 PM, P. mark Anderson wrote:
Does Ruby have built in functionality or a convention for marking a
method as deprecated? Something like ActiveSupport’s deprecate method
is what I have in mind, but more general.
http://ryandaigle.com/articles/2006/07/28/whats-new-in-edge-rails-explicit-deprecation
Add ‘warn “blah is deprecated and will be removed”’ as the first line
of your method.
There’s no need to complicate anything with extra methods you have to
call.