Skip to content

Instantly share code, notes, and snippets.

@tmaier tmaier/
Last active Dec 30, 2015

What would you like to do?
Deprecate ruby methods
class Foo
extend Gem::Deprecate
# Does some stuff the old fashioned way.
# @deprecated Please use {#the_new_thing} instead
def old_method
# ...
deprecate :old_method, :the_new_thing, 2016, 4
# Does some stuff the cool way.
def the_new_thing
# ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.