Create a gist now

Instantly share code, notes, and snippets.

@tmaier /README.md
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
# ...
end
deprecate :old_method, :the_new_thing, 2016, 4
# Does some stuff the cool way.
def the_new_thing
# ..
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment