Skip to content

Instantly share code, notes, and snippets.

@slawosz
Created July 28, 2015 07:15
Show Gist options
  • Save slawosz/7c0d339a69e1c2bca360 to your computer and use it in GitHub Desktop.
Save slawosz/7c0d339a69e1c2bca360 to your computer and use it in GitHub Desktop.
class Foo
def self.depricated
@depricated_meths = true
end
def self.method_added(method)
if @depricated_meths
puts "#{method} is depricated"
end
end
end
class Bar < Foo
def foo
puts "fuuu"
end
def bar
puts "bar"
end
depricated
def oh_no!
puts 'lalala'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment