Warn::Deprecated
This gem makes it easy to display warnings with deprecated methods.
Installation
Add this line to your application's Gemfile:
gem 'warn-deprecated'
And then execute:
$ bundle
Or install it yourself as:
$ gem install warn-deprecated
Usage
class Klass
extend Warn::Deprecated
deprecated :new_method, :old_method
def old_method
'old_method'
end
def new_method
'new_method'
end
end
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the Warn::Deprecated project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.