deprecate(*method_names)
Instance Public methods
deprecate :foo
deprecate bar: 'message'
deprecate :foo, :bar, baz: 'warning!', qux: 'gone!'
You can also use custom deprecator instance:
deprecate :foo, deprecator: MyLib::Deprecator.new
deprecate :foo, bar: "warning!", deprecator: MyLib::Deprecator.new
Custom deprecators must respond to
deprecation_warning(deprecated_method_name, message,
caller_backtrace) method where you can implement your custom warning
behavior.
class MyLib::D