module Twitter::Utils::ClassMethods
Public Instance Methods
deprecate_alias(new_name, old_name, &block)
click to toggle source
# File lib/twitter/utils.rb, line 10 def deprecate_alias(new_name, old_name, &block) define_method(new_name) do |*args| warn "#{Kernel.caller.first}: [DEPRECATION] ##{new_name} is deprecated. Use ##{old_name} instead." send(old_name, *args, &block) end end