class Tzispa::Annotations::Builtin::Deprecation
Public Class Methods
new(new_name)
click to toggle source
# File lib/tzispa/annotations/builtin/deprecation.rb, line 7 def initialize(new_name) @new_name = new_name end
Public Instance Methods
call(method, *args, &block)
click to toggle source
# File lib/tzispa/annotations/builtin/deprecation.rb, line 11 def call(method, *args, &block) warn "Method `#{method.name}` is deprecated. Use `#{@new_name}` instead." method.call(*args, &block) end